diff options
Diffstat (limited to 'gdb/gdbserver/low-hppabsd.c')
-rw-r--r-- | gdb/gdbserver/low-hppabsd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/low-hppabsd.c b/gdb/gdbserver/low-hppabsd.c index 194ede2..b5f02ae 100644 --- a/gdb/gdbserver/low-hppabsd.c +++ b/gdb/gdbserver/low-hppabsd.c @@ -96,7 +96,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"); |