This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Small fix for lin-lwp.c:child_wait()
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 31 Mar 2002 17:13:14 +0200 (CEST)
- Subject: [PATCH] Small fix for lin-lwp.c:child_wait()
Wondering why save_errno was set and never used, I came to the
conclusion that this was my origional intention :-). I'm not aware of
any bugs caused by this buglet.
Checked in on the trunk,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
while statement.
Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.33
diff -u -p -r1.33 lin-lwp.c
--- lin-lwp.c 2002/03/27 21:35:35 1.33
+++ lin-lwp.c 2002/03/31 15:10:09
@@ -969,7 +969,7 @@ child_wait (ptid_t ptid, struct target_w
clear_sigio_trap ();
clear_sigint_trap ();
}
- while (pid == -1 && errno == EINTR);
+ while (pid == -1 && save_errno == EINTR);
if (pid == -1)
{