Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / scheduler.c
index d90d436ed83f9923949fc44b7e9c39424fe2fe3f..49d491bd7843546e48974b39f0a53159256dd52a 100644 (file)
@@ -511,6 +511,7 @@ check_ready (const struct GNUNET_NETWORK_FDSet *rs,
  * cause all tasks to run (as soon as possible, respecting
  * priorities and prerequisite tasks).  Note that tasks
  * scheduled AFTER this call may still be delayed arbitrarily.
+ */
 void
 GNUNET_SCHEDULER_shutdown ()
 {
@@ -769,7 +770,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls)
          snprintf (lsof, sizeof (lsof), "lsof -p %d", getpid());
          close (1);
          dup2 (2, 1);
-         system (lsof);                  
+         ret = system (lsof);            
 #endif
 #endif
           abort ();