diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-03-31 15:10:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-03-31 15:10:38 +0000 |
commit | 2d1bfe2ed3c516f905558527a804cc7e751f7aae (patch) | |
tree | 2bf945b671cdcd9426b6d8273f536b1dcb8d2669 /gdb | |
parent | 3b83b064b07e3265df4f543cf79ed9f338bb63e6 (diff) | |
download | gdb-2d1bfe2ed3c516f905558527a804cc7e751f7aae.zip gdb-2d1bfe2ed3c516f905558527a804cc7e751f7aae.tar.gz gdb-2d1bfe2ed3c516f905558527a804cc7e751f7aae.tar.bz2 |
* lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
while statement.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/lin-lwp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4d7048..4c7b844 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-03-31 Mark Kettenis <kettenis@gnu.org> + + * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in + while statement. + 2002-03-29 Jim Blandy <jimb@redhat.com> * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index 216198b..cb5b19f 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -969,7 +969,7 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus) clear_sigio_trap (); clear_sigint_trap (); } - while (pid == -1 && errno == EINTR); + while (pid == -1 && save_errno == EINTR); if (pid == -1) { |