X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2Fpoll_echod.c;h=8efef2f2719c07a904266c0b158cd8bb3f9f1ca8;hp=91b53cefee58f03f0a9ae6d4944800d24d5b01fc;hb=0605ed025fd00ee41a7515b778bc686a6044f059;hpb=630c685145f488d9a3b7b81a25619982dbbb25ea diff --git a/listati/poll_echod.c b/listati/poll_echod.c index 91b53ce..8efef2f 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,5 @@ } } } - /* normal exit, never reached */ - exit(0); + exit(0); /* normal exit, never reached */ }