From: Havoc Pennington Date: Wed, 10 Nov 2004 20:12:15 +0000 (+0000) Subject: add a little comment about WNOHANG/EINTR X-Git-Tag: dbus-0.23~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa1294405e5440306a9d1ce1f6c4e86f8793e9b8;p=thirdparty%2Fdbus.git add a little comment about WNOHANG/EINTR --- diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index b39a75a75..db8192fa9 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);