diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 0d7aee8..86d7bb7 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -579,10 +579,13 @@ wait_fd () #else pi = current_procinfo; - if (ioctl (pi->fd, PIOCWSTOP, &pi->prstatus) < 0) + while (ioctl (pi->fd, PIOCWSTOP, &pi->prstatus) < 0) { - print_sys_errmsg (pi->pathname, errno); - error ("PIOCWSTOP failed"); + if (errno != EINTR) + { + print_sys_errmsg (pi->pathname, errno); + error ("PIOCWSTOP failed"); + } } pi->had_event = 1; #endif |