From aa1294405e5440306a9d1ce1f6c4e86f8793e9b8 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 10 Nov 2004 20:12:15 +0000 Subject: add a little comment about WNOHANG/EINTR --- dbus/dbus-spawn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dbus/dbus-spawn.c') diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index b39a75a7..db8192fa 100644 --- a/dbus/dbus-spawn.c +++ b/dbus/dbus-spawn.c @@ -867,6 +867,9 @@ check_babysit_events (pid_t grandchild_pid, do { ret = waitpid (grandchild_pid, &status, WNOHANG); + /* The man page says EINTR can't happen with WNOHANG, + * but there are reports of it (maybe only with valgrind?) + */ } while (ret < 0 && errno == EINTR); -- cgit