diff options
Diffstat (limited to 'gdb/gdbserver/low-nbsd.c')
-rw-r--r-- | gdb/gdbserver/low-nbsd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/low-nbsd.c b/gdb/gdbserver/low-nbsd.c index 9a0f07a..3b3009f 100644 --- a/gdb/gdbserver/low-nbsd.c +++ b/gdb/gdbserver/low-nbsd.c @@ -172,7 +172,9 @@ mywait (char *status) int pid; int w; - pid = wait (&w); + enable_async_io (); + pid = waitpid (inferior_pid, &w, 0); + disable_async_io (); if (pid != inferior_pid) perror_with_name ("wait"); |