summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-10 09:46:04 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-10 09:46:04 +0000
commitf9d6455b71c643d6421c3985bf997e7ce484fd7e (patch)
tree7fc165aedc4a44cb602e52025526a64845e07bf6
parent30baa360c58a1de211bd14937530dfaf8362fae3 (diff)
downloadglibc-f9d6455b71c643d6421c3985bf997e7ce484fd7e.tar.gz
glibc-f9d6455b71c643d6421c3985bf997e7ce484fd7e.tar.xz
glibc-f9d6455b71c643d6421c3985bf997e7ce484fd7e.zip
Update.
1998-04-10 12:40  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* manual/process.texi (SIGCHLD example): Save errno.

	Patch by Christian Gafton.
-rw-r--r--ChangeLog5
-rw-r--r--manual/process.texi5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 88b1655839..4ff8e97d48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1998-04-10 12:40  Zack Weinberg  <zack@rabi.phys.columbia.edu>
+
+	* manual/process.texi (SIGCHLD example): Save errno.
+
 1998-04-09  Ulrich Drepper  <drepper@cygnus.com>
 
 	* posix/regex.c: Define regerror really as __regerror.
@@ -13,6 +17,7 @@
 	* sysdeps/i386/i486/bits/string.h: Remove unused variables.
 
 	* misc/syslog.c (closelog_internal): Set LogTag to NULL.
+	Patch by Christian Gafton.
 
 1998-04-09 14:27  Ulrich Drepper  <drepper@cygnus.com>
 
diff --git a/manual/process.texi b/manual/process.texi
index b1f5ef469a..e10534212c 100644
--- a/manual/process.texi
+++ b/manual/process.texi
@@ -608,8 +608,8 @@ indicates that at least one child process has terminated.
 void
 sigchld_handler (int signum)
 @{
-  int pid;
-  int status;
+  int pid, status, serrno;
+  serrno = errno;
   while (1)
     @{
       pid = waitpid (WAIT_ANY, &status, WNOHANG);
@@ -622,6 +622,7 @@ sigchld_handler (int signum)
         break;
       notice_termination (pid, status);
     @}
+  errno = serrno;
 @}
 @end group
 @end smallexample