#include <unistd.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
if (fork() == 0) {
signal(SIGINT, sigintF);
while (1) {
- printf("ici fils \n");
+ printf("ici fils\n");
sleep(1);
}
}
while (1) {
signal(SIGINT, sigintP);
- printf("ici pere \n");
+ printf("ici pere\n");
sleep(1);
}
- return 0;
}