-check return value
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:25:25 +0000 (10:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:25:25 +0000 (10:25 +0000)
src/util/helper.c

index bbcd772854168ba05ad100422cf7c2e15eaca067..6ebc3a444996dcfaf16e7d1888fc06ca947f6f68 100644 (file)
@@ -152,8 +152,8 @@ stop_helper (struct GNUNET_HELPER_Handle *h)
 
   if (NULL != h->helper_proc)
   {
-    GNUNET_OS_process_kill (h->helper_proc, SIGTERM);
-    GNUNET_OS_process_wait (h->helper_proc);
+    GNUNET_break (0 == GNUNET_OS_process_kill (h->helper_proc, SIGTERM));
+    GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (h->helper_proc));
     GNUNET_OS_process_close (h->helper_proc);
     h->helper_proc = NULL;
   }