X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FFifoReporter.c;h=0ce8c37df0313cb39d07267077e424558c7adee1;hp=4e35cba367bb4d816cabf19b67f1aef8932482b8;hb=04c68576a3be5ccfda8faf2030d4cbc2997c29fa;hpb=511c7621872e959e05b79920b09c6e45590f1706 diff --git a/sources/FifoReporter.c b/sources/FifoReporter.c index 4e35cba..0ce8c37 100644 --- a/sources/FifoReporter.c +++ b/sources/FifoReporter.c @@ -165,6 +165,7 @@ int main(int argc, char *argv[]) /* * 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"); @@ -185,7 +186,9 @@ int main(int argc, char *argv[]) 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); }