bin/60806: inetd hangs on non-existent config files

Jeff Ito jeffi at rcn.com
Thu Jan 1 17:20:17 PST 2004


>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:


More information about the freebsd-bugs mailing list