summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2001-09-03 21:22:39 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2001-09-03 21:22:39 +0000
commitc02266c8e24473a748a9367cf681bcce6b08aeed (patch)
tree3ed938d65302890c4f70ed75f8ec18930edd1834
parentfc922c9690dfeacb1cb9a33f451361bad456d167 (diff)
doreap() needn't preserve errno, since it's not a signal handler.
-rw-r--r--usr.sbin/inetd/inetd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 2439beecba8..8c344920dbd 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.83 2001/07/04 06:46:58 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.84 2001/09/03 21:22:38 pjanzen 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.83 2001/07/04 06:46:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.84 2001/09/03 21:22:38 pjanzen Exp $";
#endif /* not lint */
/*
@@ -719,7 +719,7 @@ void
doreap(void)
{
pid_t pid;
- int save_errno = errno, status;
+ int status;
register struct servtab *sep;
if (debug)
@@ -750,7 +750,6 @@ doreap(void)
sep->se_service, sep->se_fd);
}
}
- errno = save_errno;
}
int setconfig __P((void));