]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
add a little comment about WNOHANG/EINTR
authorHavoc Pennington <hp@redhat.com>
Wed, 10 Nov 2004 20:12:15 +0000 (20:12 +0000)
committerHavoc Pennington <hp@redhat.com>
Wed, 10 Nov 2004 20:12:15 +0000 (20:12 +0000)
dbus/dbus-spawn.c

index b39a75a7547396137d3df6d1f2a474ae2b33cca4..db8192fa9db89a17a7c903990ac5a87c616201c3 100644 (file)
@@ -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);