X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=listati%2Fpoll_echod.c;h=e2e2a9612211c061ddb7aee75f2316b2901e8e55;hb=3f50b8e3fd683f710e34a88436109157d328e1b6;hp=91b53cefee58f03f0a9ae6d4944800d24d5b01fc;hpb=630c685145f488d9a3b7b81a25619982dbbb25ea;p=gapil.git diff --git a/listati/poll_echod.c b/listati/poll_echod.c index 91b53ce..e2e2a96 100644 --- a/listati/poll_echod.c +++ b/listati/poll_echod.c @@ -14,7 +14,6 @@ PrintErr("poll error"); exit(1); } - /* on activity */ if (poll_set[list_fd].revents & POLLRDNORM) { /* if new connection */ n--; /* decrement active */ len = sizeof(c_addr); /* and call accept */ @@ -25,7 +24,6 @@ poll_set[fd].fd = fd; /* set new connection socket */ if (max_fd < fd) max_fd = fd; /* if needed set new maximum */ } - /* loop on open connections */ i = list_fd; /* first socket to look */ while (n != 0) { /* loop until active */ i++; /* start after listening socket */ @@ -55,6 +53,4 @@ } } } - /* normal exit, never reached */ - exit(0); -} + exit(0); /* normal exit, never reached */