Commits

Anonymous committed 28e2751

force more

  • Participants
  • Parent commits 7eb8655
  • Tags 1.0

Comments (0)

Files changed (1)

   int running;
   int kills;
   int watchdog;
+  int force_respawn;
 };
 
 struct kid_proc *procs = NULL;
 
   for (p = procs; p; p = p->next) {
     if (p->running && p->tracer_for == 0) {
+      p->force_respawn = 1;
       kill(p->pid, SIGTERM);
     }
   }
     }
     time(&last_spawn);
     wait_for_child(p);
-    if (WIFSIGNALED(p->exit_status) && (
+    if (p->force_respawn) {
+      respawn = 1;
+      free(p);
+    } else if (WIFSIGNALED(p->exit_status) && (
 #ifdef SIGSEGV
           WTERMSIG(p->exit_status) == SIGSEGV ||
 #endif