summaryrefslogtreecommitdiff
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
commitb610ce74daed4c0be25ecb64fa2a072350b0a91d (patch)
treeb625465480330a2efaa1fd48e70f376f4c6a7836 /gdb/lin-lwp.c
parent1c0fa090c1d13c36cc10b94f650d6028bbd985fe (diff)
downloadgdb-b610ce74daed4c0be25ecb64fa2a072350b0a91d.tar.gz
* 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 216198b003f..cb5b19f3148 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)
{