aboutsummaryrefslogtreecommitdiff
path: root/gdb/lin-lwp.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-03-31 15:10:38 +0000
committerMark Kettenis <kettenis@gnu.org>2002-03-31 15:10:38 +0000
commit2d1bfe2ed3c516f905558527a804cc7e751f7aae (patch)
tree2bf945b671cdcd9426b6d8273f536b1dcb8d2669 /gdb/lin-lwp.c
parent3b83b064b07e3265df4f543cf79ed9f338bb63e6 (diff)
downloadgdb-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/lin-lwp.c')
-rw-r--r--gdb/lin-lwp.c2
1 files changed, 1 insertions, 1 deletions
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)
{