From: Mark Kettenis Date: Sun, 31 Mar 2002 15:10:38 +0000 (+0000) Subject: * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d1bfe2ed3c516f905558527a804cc7e751f7aae;p=binutils-gdb.git * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in while statement. --- 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) {