bugfix
[oweals/gnunet.git] / src / util / os_priority.c
index 16537dfcdc7abd36480c316d0cc01f45030f23b9..4e820b8d5cfda1e8efb95d06e35228edb407e762 100644 (file)
@@ -274,9 +274,7 @@ GNUNET_OS_process_status (pid_t proc, enum GNUNET_OS_ProcessStatusType *type,
 
   GNUNET_assert (0 != proc);
   ret = waitpid (proc, &status, WNOHANG);
-  if ( (0 == ret) ||
-       ( (-1 == ret) &&
-        (ECHILD == errno) ) )
+  if (0 == ret) 
     {
       *type = GNUNET_OS_PROCESS_RUNNING;
       *code = 0;