summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2001-09-03 21:22:38 +0000
committerpjanzen <pjanzen@openbsd.org>2001-09-03 21:22:38 +0000
commit0f8921afe8fc804f5fb83b778567a4652eed0f77 (patch)
treeb0b36b10d8698f5042f30a37297b6ad87f02d7bb
parentfatal() for nonexistent -Fssh_config. ok markus@ (diff)
downloadwireguard-openbsd-0f8921afe8fc804f5fb83b778567a4652eed0f77.tar.xz
wireguard-openbsd-0f8921afe8fc804f5fb83b778567a4652eed0f77.zip
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));