X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FFifoReporter.c;h=0ce8c37df0313cb39d07267077e424558c7adee1;hp=49b328aafe3489a267f75f2ffc85d79ead98a713;hb=04c68576a3be5ccfda8faf2030d4cbc2997c29fa;hpb=c15153bee6a516df24ebb4e7bf33ffa7ce91496d diff --git a/sources/FifoReporter.c b/sources/FifoReporter.c index 49b328a..0ce8c37 100644 --- a/sources/FifoReporter.c +++ b/sources/FifoReporter.c @@ -157,7 +157,7 @@ int main(int argc, char *argv[]) die("Cannot create well known fifo"); } if ((fifofd = open(fifoname, O_RDWR|O_NONBLOCK)) < 0) // open fifo - die("Cannot open read only well known fifo"); + die("Cannot open well known fifo"); epev.data.fd = fifofd; // add fd to epoll epev.events = EPOLLIN; if (epoll_ctl(epfd, EPOLL_CTL_ADD, fifofd, &epev)) @@ -165,11 +165,12 @@ 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"); debug("Got %i events\n", n); - /* loop on eppol events */ + /* loop on epoll events */ for (i=0; i