gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12574 - gnunet/contrib


From: gnunet
Subject: [GNUnet-SVN] r12574 - gnunet/contrib
Date: Mon, 16 Aug 2010 15:41:08 +0200

Author: wachs
Date: 2010-08-16 15:41:08 +0200 (Mon, 16 Aug 2010)
New Revision: 12574

Modified:
   gnunet/contrib/timeout_watchdog.c
Log:
fixing bugs


Modified: gnunet/contrib/timeout_watchdog.c
===================================================================
--- gnunet/contrib/timeout_watchdog.c   2010-08-16 13:09:37 UTC (rev 12573)
+++ gnunet/contrib/timeout_watchdog.c   2010-08-16 13:41:08 UTC (rev 12574)
@@ -39,15 +39,15 @@
   int ret = 0;
   
   waitpid (child, &status, 0);
-  if (WIFEXITED(status) == 1)
+  if (WIFEXITED(status) != 0)
   {
     ret = WEXITSTATUS(status);
     printf("Test process exited with result %u\n", ret);
   }
-  if (WIFSIGNALED(status) == 1)
+  if (WIFSIGNALED(status) != 0)
   {
-    printf("Test process was signaled %u\n", WTERMSIG(status));
-    ret = WTERMSIG(status);
+       ret = WTERMSIG(status);
+       printf("Test process was signaled %u\n", ret);
   }   
   exit(ret);  
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]