gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21659 - gnunet/contrib


From: gnunet
Subject: [GNUnet-SVN] r21659 - gnunet/contrib
Date: Thu, 31 May 2012 18:49:27 +0200

Author: grothoff
Date: 2012-05-31 18:49:27 +0200 (Thu, 31 May 2012)
New Revision: 21659

Modified:
   gnunet/contrib/timeout_watchdog_w32.c
Log:
-LRN: make watchdog always kill its children

Modified: gnunet/contrib/timeout_watchdog_w32.c
===================================================================
--- gnunet/contrib/timeout_watchdog_w32.c       2012-05-31 15:30:36 UTC (rev 
21658)
+++ gnunet/contrib/timeout_watchdog_w32.c       2012-05-31 16:49:27 UTC (rev 
21659)
@@ -173,14 +173,16 @@
     if (wait_result != 0)
     {
       printf ("Test process exited with result %lu\n", status);
+      TerminateJobObject (job, status);
       exit (status);
     }
     printf ("Test process exited (failed to obtain exit status)\n");
+    TerminateJobObject (job, 0);
     exit (0);
   }
   printf ("Child processes were killed after timeout of %u seconds\n",
              timeout);
-  TerminateJobObject (job, 0);
+  TerminateJobObject (job, 1);
   CloseHandle (proc.hProcess);
   exit (1);
 }




reply via email to

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