* gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
[deliverable/binutils-gdb.git] / gdb / gdbserver / low-linux.c
index ea210f369591b9d902aaf2dca213b91b50d0f68a..eea8c1df6b109a2f54c15eee3abcfbcaee0aeaf6 100644 (file)
@@ -105,7 +105,9 @@ mywait (char *status)
   int pid;
   union wait w;
 
-  pid = wait (&w);
+  enable_async_io ();
+  pid = waitpid (inferior_pid, &w, 0);
+  disable_async_io ();
   if (pid != inferior_pid)
     perror_with_name ("wait");
 
This page took 0.023623 seconds and 4 git commands to generate.