Subject: bin/23049: inetd hangs, and does not exit when passed a non existent config file
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 10/04/2003 00:43:53
>Number: 23049
>Category: bin
>Synopsis: inetd hangs, and does not exit when passed a non existent config file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 04 00:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jeff Ito
>Release: NetBSD 1.6ZC
>Organization:
>Environment:
NetBSD netbsd 1.6ZC NetBSD 1.6ZC (LAB) #0: Sun Sep 21 23:12:05 EDT 2003 root@netbsd:/q/build/obj/sys/arch/i386/compile/LAB i386
>Description:
inetd hangs and does not exit when passed a non existent config file
>How-To-Repeat:
$ inetd /bah
>Fix:
Index: inetd.c
===================================================================
RCS file: /opt/cvs/nbsd/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.93
diff -u -r1.93 inetd.c
--- inetd.c 7 Aug 2003 11:25:21 -0000 1.93
+++ inetd.c 4 Oct 2003 00:40:19 -0000
@@ -798,7 +798,7 @@
if (!setconfig()) {
syslog(LOG_ERR, "%s: %m", CONFIG);
- return;
+ exit(1);
}
for (sep = servtab; sep != NULL; sep = sep->se_next)
sep->se_checked = 0;
>Release-Note:
>Audit-Trail:
>Unformatted: