Date: Thu, 1 Jan 2004 17:14:13 -0800 (PST) From: Jeff Ito <jeffi@rcn.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/60806: inetd hangs on non-existent config files Message-ID: <200401020114.i021ED81007083@www.freebsd.org> Resent-Message-ID: <200401020120.i021KFmf007828@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60806
>Category: bin
>Synopsis: inetd hangs on non-existent config files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 01 17:20:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Jeff Ito
>Release: -CURRENT
>Organization:
>Environment:
CURRENT
>Description:
inetd run with a non-existent config file hangs and never dies. I don't believe this to be the desired behavior.
>How-To-Repeat:
inetd /bah
>Fix:
I don't know if EX_USAGE is the correct exit state, but that seems consitent with similar exit scenarios
Index: inetd.c
===================================================================
RCS file: /cvs/fbsd/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.123
diff -u -r1.123 inetd.c
--- inetd.c 30 Oct 2003 22:56:44 -0000 1.123
+++ inetd.c 12 Dec 2003 01:35:57 -0000
@@ -987,7 +987,7 @@
if (!setconfig()) {
syslog(LOG_ERR, "%s: %m", CONFIG);
- return;
+ exit(EX_USAGE);
}
for (sep = servtab; sep; sep = sep->se_next)
sep->se_checked = 0;
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401020114.i021ED81007083>
