Compare commits
10 Commits
a6bb818b35
...
b29b2202fc
Author | SHA1 | Date | |
---|---|---|---|
|
b29b2202fc | ||
|
afa5b25e2c | ||
|
63f609734e | ||
|
ae0b450b56 | ||
|
f6f6fcf077 | ||
|
0075a38971 | ||
|
90ec7bf553 | ||
|
518bb0cab0 | ||
|
23aa8f515d | ||
|
4df34c410c |
18
Readme.md
18
Readme.md
@ -1,6 +1,5 @@
|
|||||||
# Minitalk
|
# Minitalk
|
||||||
## Description
|
Minitalk is a simple project that requires you to use unix signals to send over strings between 2 programs.\
|
||||||
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
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -15,7 +14,22 @@ 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/)
|
||||||
|
Loading…
Reference in New Issue
Block a user