/*
* Main body: wait something to report
*/
+ printf("FifoReporter starting, pid %i\n", getpid());
while (1) {
if ((n=epoll_wait(epfd, events, MAX_EPOLL_EV, -1)) < 0)
die("error on epoll_wait");
continue;
}
printf("Got %s\n", sig_names[siginf.ssi_signo]);
+ printf("From pid %i\n", siginf.ssi_pid);
if(siginf.ssi_signo == SIGINT) { // SIGINT is exit
+ printf("SIGINT means exit\n");
unlink(fifoname);
exit(0);
}