The purpose of this project is to code a small data exchange program using UNIX signals.
This project is for Mac OS and Linux.
- git clone
git@github.com:MLeganes/42Minitalk.git
cd 42Minitalk
make
- Run server
./server
- Run client
./client <pid-server> <message>
- Run client with with text file
./client <pid-server> "`cat file-name`"
Add -g in gcc command.
-fsanitize=leak
-fsanitize=address
Add in header file this define:
# define PRINT_HERE() (printf("file: %s, line: %d\n", __FILE__, __LINE__))
And used it from any part of your program
PRINT_HERE();