mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
while statement.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user