summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2001-04-13 13:51:54 +0000
committerFernando Nasser <fnasser@redhat.com>2001-04-13 13:51:54 +0000
commit61baabd32dc447d38180b86a60eeb1aaef1a8533 (patch)
tree65bdfd5da8d8cedf821ad0b004e9949fde7089c2 /gdb/procfs.c
parentc0c2cff88bb107c2ce9c644ccc7dfbfc520c2e40 (diff)
downloadgdb-61baabd32dc447d38180b86a60eeb1aaef1a8533.tar.gz
2001-04-13 Fernando Nasser <fnasser@redhat.com>
From Adam Mirowski <Adam.Mirowski@Sun.COM> Fixed Insight on Solaris. It was not possible to debug a process because of EINTR "errors". * procfs.c: (procfs_wait): if proc_wait_for_stop() fails with EINTR, retry the call.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index a899dac9c8f..1c15c367c28 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3959,6 +3959,8 @@ wait_again:
/* FIXME: might I not just use waitpid?
Or try find_procinfo to see if I know about this child? */
}
+ else if (errno == EINTR)
+ goto wait_again;
else
{
/* Unknown error from wait_for_stop. */