diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:55:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:55:38 +0000 |
commit | 5c3082ad2c625ad3e676e37853df2d6a60d291ba (patch) | |
tree | 1ff69434961ddd0be6836cc6defa3a600b3d0c8c /src/util/os_priority.c | |
parent | a0f18c669ccc260f5aa81fd31b6329b3998a45cc (diff) | |
download | gnunet-5c3082ad2c625ad3e676e37853df2d6a60d291ba.tar.gz gnunet-5c3082ad2c625ad3e676e37853df2d6a60d291ba.zip |
-use blocking wait as the pipe might be faster than the process cleanup
Diffstat (limited to 'src/util/os_priority.c')
-rw-r--r-- | src/util/os_priority.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 88eee70dd..850378c26 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c | |||
@@ -1580,6 +1580,8 @@ GNUNET_OS_process_status (struct GNUNET_OS_Process *proc, | |||
1580 | 1580 | ||
1581 | GNUNET_assert (0 != proc); | 1581 | GNUNET_assert (0 != proc); |
1582 | ret = waitpid (proc->pid, &status, WNOHANG); | 1582 | ret = waitpid (proc->pid, &status, WNOHANG); |
1583 | fprintf (stderr, "Waitpid %d returned %d\n", | ||
1584 | proc->pid, ret); | ||
1583 | if (ret < 0) | 1585 | if (ret < 0) |
1584 | { | 1586 | { |
1585 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "waitpid"); | 1587 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "waitpid"); |