ubuntu@ubuntu:day5$ gcc 1.c
1.c: In function ‘main’:
1.c:15:9: warning: implicit declaration of function ‘mkfifo’ [-Wimplicit-function-declaration]
if (mkfifo(FIFO1, 0666) == -1) {
^~~~~~
1.c:55:9: warning: implicit declaration of function ‘wait’; did you mean ‘main’? [-Wimplicit-function-declaration]
wait(NULL);
^~~~
main
ubuntu@ubuntu:day5$ ./a.out
Child read from pipe1: Hello from pipe1�TP�Q
Child read from pipe2: Hello from pipe2�TP�Q
ubuntu@ubuntu:day5$