Mercurial > hg > octave-nkf > gnulib-hg
changeset 7317:251167cff509
* savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 18 Sep 2006 06:47:32 +0000 |
parents | 25dcfa3814de |
children | ac523b84aa12 |
files | lib/ChangeLog lib/savewd.c |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-09-18 Jim Meyering <jim@meyering.net> + + * savewd.c (savewd_restore): Don't shadow: s/status/child_status/. + 2006-09-15 Paul Eggert <eggert@cs.ucla.edu> * dirchownmod.c: Don't include fcntl.h; no longer needed.
--- a/lib/savewd.c +++ b/lib/savewd.c @@ -201,13 +201,13 @@ _exit (status); if (0 < child) { - int status; - while (waitpid (child, &status, 0) < 0) + int child_status; + while (waitpid (child, &child_status, 0) < 0) assert (errno == EINTR); wd->val.child = -1; - if (! WIFEXITED (status)) - raise (WTERMSIG (status)); - return WEXITSTATUS (status); + if (! WIFEXITED (child_status)) + raise (WTERMSIG (child_status)); + return WEXITSTATUS (child_status); } } break;