mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-15 20:22:28 +08:00
* 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:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user