* 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.
This commit is contained in:
J.T. Conklin 2001-07-11 17:33:24 +00:00
parent 84c6c83cbc
commit cf30a8e15b
6 changed files with 50 additions and 14 deletions

View file

@ -102,7 +102,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");