From a134ad2f2aa12781a1073708b42a9fd13632eb61 Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 9 Dec 1995 09:42:03 +0000 Subject: Submitted by: John Hay Ok, I shouldn't have said it was the last one previously. :-)) This fix a stupid bug in the select code. John --- usr.sbin/IPXrouted/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/IPXrouted/main.c b/usr.sbin/IPXrouted/main.c index 4797a6a..2bac1fe 100644 --- a/usr.sbin/IPXrouted/main.c +++ b/usr.sbin/IPXrouted/main.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: main.c,v 1.1 1995/10/26 21:28:19 julian Exp $ + * $Id: main.c,v 1.2 1995/10/27 10:48:28 julian Exp $ */ #ifndef lint @@ -227,10 +227,10 @@ main(argc, argv) if(select(nfds, &fdvar, (fd_set *)NULL, (fd_set *)NULL, (struct timeval *)NULL) < 0) { - if(errno != EINTR) { - perror("during select"); - exit(1); - } + if(errno == EINTR) + continue; + perror("during select"); + exit(1); } if(FD_ISSET(ripsock, &fdvar)) -- cgit v1.1