* procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
by restarting the ioctl.
+Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
+
+ * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
+ by restarting the ioctl.
+
Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* target.h (target_wait): Add comment about calling
#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