This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]