summaryrefslogtreecommitdiff
path: root/libexec/identd/identd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-29 07:49:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-29 07:49:32 +0000
commit2f3e18fe95f3980263e7595fa90f94b20553c620 (patch)
tree3be8379699faaae94130a6048bc61aa87fb5be7b /libexec/identd/identd.c
parentc0268d8790264c085de02502ac9627028cb760e7 (diff)
wrap wait3 with save_errno
Diffstat (limited to 'libexec/identd/identd.c')
-rw-r--r--libexec/identd/identd.c4
1 files changed, 3 insertions, 1 deletions
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