Compare commits

..

No commits in common. "b29b2202fcb52dbe8d2027f4b74c14e632dbc7ae" and "a6bb818b356a845627dd8fe769c36f6304dfec46" have entirely different histories.

View File

@ -1,5 +1,6 @@
# Minitalk # Minitalk
Minitalk is a simple project that requires you to use unix signals to send over strings between 2 programs.\ ## Description
Minitalk is a simple project that requires you to use unix signals to send over strings between 2 programs.
We can only use **SIGUSR1** and **SIGUSR2** and we can use the kill function to send them over We can only use **SIGUSR1** and **SIGUSR2** and we can use the kill function to send them over
--- ---
@ -14,22 +15,7 @@ We can only use **SIGUSR1** and **SIGUSR2** and we can use the kill function to
- it keeps ignoring signals from other PIDs untill it received \0 from the current pid - it keeps ignoring signals from other PIDs untill it received \0 from the current pid
- after \0 is received pid is set back to 1 - after \0 is received pid is set back to 1
---
## Usage
1. Simply clone or download the repository
2. Run `make` in the cloned directory
3. Start the server with `./server` in the cloned directory
4. Open a second terminal in the same directory and run `./client [PID from server] ["Message in quotes"]`
--- ---
## Tester ## Tester
### Todo
- add valgrind to tester - add valgrind to tester
- check for -Wall -Werror -Wextra - check for -Wall -Werror -Wextra
### Usage
1. Download test.sh into your own minitalk directory
2. Make the file executable `chmod +x test.sh`
3. Run `./test.sh` to start the test
---
[This project is part of the studies at 42](https://42.fr/en/homepage/)