summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-spawn.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2004-11-10 06:53:10 +0000
committerColin Walters <walters@verbum.org>2004-11-10 06:53:10 +0000
commit255342aa67a3650a5400efed877e51e5d9cc79cc (patch)
treeb4efc2541a6ca6fb5464ee761e1fb6c2d700b089 /dbus/dbus-spawn.c
parent935a41a04c3f638134fa905503fc41ddbd18902f (diff)
2004-11-10 Colin Walters <walters@verbum.org>
* dbus/dbus-spawn.c (check_babysit_events): Handle EINTR, for extra paranoia.
Diffstat (limited to 'dbus/dbus-spawn.c')
-rw-r--r--dbus/dbus-spawn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c
index 03947cce..b39a75a7 100644
--- a/dbus/dbus-spawn.c
+++ b/dbus/dbus-spawn.c
@@ -864,7 +864,11 @@ check_babysit_events (pid_t grandchild_pid,
pid_t ret;
int status;
- ret = waitpid (grandchild_pid, &status, WNOHANG);
+ do
+ {
+ ret = waitpid (grandchild_pid, &status, WNOHANG);
+ }
+ while (ret < 0 && errno == EINTR);
if (ret == 0)
{