Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 1 Feb 1994 21:46:17 +0000 (21:46 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 1 Feb 1994 21:46:17 +0000 (21:46 +0000)
* procfs.c (wait_fd):  Handle EINTR error return from PIOCWSTOP ioctl
by restarting the ioctl.

gdb/ChangeLog
gdb/procfs.c

index a59820dfc749a947af0d50affabaf13f1e553032..6206f63ecf601034c207c795b586847841a6c353 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0d7aee8775787c277ab58c70bba6bc0a11e145e2..86d7bb7706fe7949e15ca7399e41ee10557094ea 100644 (file)
@@ -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  
This page took 0.027785 seconds and 4 git commands to generate.