From 2f3e18fe95f3980263e7595fa90f94b20553c620 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 29 Jul 1997 07:49:32 +0000 Subject: wrap wait3 with save_errno --- libexec/identd/identd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libexec/identd/identd.c') diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c index 7e061734836..3a0ea8ed9fd 100644 --- a/libexec/identd/identd.c +++ b/libexec/identd/identd.c @@ -1,5 +1,5 @@ /* -** $Id: identd.c,v 1.4 1997/07/23 20:36:27 kstailey Exp $ +** $Id: identd.c,v 1.5 1997/07/29 07:49:31 deraadt Exp $ ** ** identd.c A TCP/IP link identification protocol server ** @@ -178,10 +178,12 @@ child_handler() #else int status; #endif + int save_errno = errno; while (wait3(&status, WNOHANG, NULL) > 0) ; + errno = save_errno; #ifndef SIGRETURN_TYPE_IS_VOID return 0; #endif -- cgit v1.2.3