[PATCH 2/3] [delete] Not-so-harmless spurious call to `wait4`

Dominique Quatravaux dominique.quatravaux@epfl.ch
Thu Apr 8 19:14:47 GMT 2021


As seen in https://sourceware.org/bugzilla/show_bug.cgi?id=24069
---
 gdb/darwin-nat.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 3ec881d3a76..9c6423ceb02 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -1106,9 +1106,6 @@ darwin_nat_target::decode_message (mach_msg_header_t *hdr,
 	      inferior_debug (4, _("darwin_wait: pid=%d exit, status=0x%x\n"),
 			      res_pid, wstatus);
 
-	      /* Looks necessary on Leopard and harmless...  */
-	      wait4 (inf->pid, &wstatus, 0, NULL);
-
 	      return ptid_t (inf->pid);
 	    }
 	  else
-- 
2.31.1



More information about the Gdb-patches mailing list