diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-07-08 20:37:31 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-07-08 20:37:31 +0000 |
commit | 8b272f035deecb6774fcd1f3c791ce37cff818cb (patch) | |
tree | 7cb417c347f6c86c037fa64ff245656408d0af44 /usr.sbin | |
parent | b7e2f3e20d9b71d0be422aeb074fd8a90b34723e (diff) |
print child exit status in debug mode.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 58f842ff849..dd217388b6f 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.34 1997/07/08 20:31:14 kstailey Exp $ */ +/* $OpenBSD: inetd.c,v 1.35 1997/07/08 20:37:30 kstailey 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.34 1997/07/08 20:31:14 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.35 1997/07/08 20:37:30 kstailey Exp $"; #endif /* not lint */ /* @@ -585,7 +585,7 @@ reapchild(sig) if (pid <= 0) break; if (debug) - fprintf(stderr, "%d reaped\n", pid); + fprintf(stderr, "%d reaped, status %x\n", pid, status); for (sep = servtab; sep; sep = sep->se_next) if (sep->se_wait == pid) { if (WIFEXITED(status) && WEXITSTATUS(status)) |