projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9014a56
)
fixing waitpid usage issues
author
Christian Grothoff
<christian@grothoff.org>
Fri, 12 Jun 2009 00:52:23 +0000
(
00:52
+0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 12 Jun 2009 00:52:23 +0000
(
00:52
+0000)
src/util/os_priority.c
patch
|
blob
|
history
diff --git
a/src/util/os_priority.c
b/src/util/os_priority.c
index 0dfc9cafe8bf7a7f52652228dd22ddf1850c6493..16537dfcdc7abd36480c316d0cc01f45030f23b9 100644
(file)
--- a/
src/util/os_priority.c
+++ b/
src/util/os_priority.c
@@
-272,7
+272,8
@@
GNUNET_OS_process_status (pid_t proc, enum GNUNET_OS_ProcessStatusType *type,
int status;
int ret;
- ret = waitpid (0, &status, WNOHANG);
+ GNUNET_assert (0 != proc);
+ ret = waitpid (proc, &status, WNOHANG);
if ( (0 == ret) ||
( (-1 == ret) &&
(ECHILD == errno) ) )