From 2d1bfe2ed3c516f905558527a804cc7e751f7aae Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 31 Mar 2002 15:10:38 +0000 Subject: [PATCH] * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in while statement. --- gdb/ChangeLog | 5 +++++ gdb/lin-lwp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4d704837ea..4c7b8445fcb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-03-31 Mark Kettenis + + * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in + while statement. + 2002-03-29 Jim Blandy * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate 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) { -- 2.30.2