diff options
author | Dan Harnett <danh@cvs.openbsd.org> | 2001-03-15 18:28:42 +0000 |
---|---|---|
committer | Dan Harnett <danh@cvs.openbsd.org> | 2001-03-15 18:28:42 +0000 |
commit | e7650e536bfad70fad1172b9ff17c1d4bc63cb80 (patch) | |
tree | 516e96e1788d9942b5a5c9adb5e250a0b2a398ce /usr.sbin | |
parent | 56ed2eb1b84a07fabdae8fe50cbb4bb3b8748abe (diff) |
break out of loop if a flag is set; ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 8cc5a445f45..8687348bd89 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.81 2001/03/15 18:07:57 deraadt Exp $ */ +/* $OpenBSD: inetd.c,v 1.82 2001/03/15 18:28:41 danh Exp $ */ /* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/ -static char rcsid[] = "$OpenBSD: inetd.c,v 1.81 2001/03/15 18:07:57 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.82 2001/03/15 18:28:41 danh Exp $"; #endif /* not lint */ /* @@ -446,8 +446,11 @@ main(argc, argv, envp) if (nsock == 0) { (void) sigblock(SIGBLOCK); - while (nsock == 0) + while (nsock == 0) { + if (wantretry || wantconfig || wantreap) + break; sigpause(0L); + } (void) sigsetmask(0L); } |