From cf30a8e15b5ad7145914ee613d37760554ea606c Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Wed, 11 Jul 2001 17:33:24 +0000 Subject: * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner" of SIGIO. (input_interrupt): Don't block on read, in case we got redundant SIGIO. Don't gripe about redundant SIGIO. * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO handler while waiting. * gdbserver/low-linux.c (mywait): Likewise. * gdbserver/low-nbsd.c (mywait): Likewise. * gdbserver/low-sparc.c (mywait): Likewise. --- gdb/gdbserver/low-linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver/low-linux.c') diff --git a/gdb/gdbserver/low-linux.c b/gdb/gdbserver/low-linux.c index ea210f3..eea8c1d 100644 --- a/gdb/gdbserver/low-linux.c +++ b/gdb/gdbserver/low-linux.c @@ -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"); -- cgit v1.1