Commits

Anonymous committed e36b74e

when running immortal, make sure that we can actually exit if the parent
is killed.

refs #8886 (spent 1)

  • Participants
  • Parent commits 02522f4
  • Tags 1.1.54

Comments (0)

Files changed (1)

 {
   struct kid_proc *p;
 
+  if (should_exit) {
+    return;
+  }
+
   logprint("caught signal %s, restarting child\n",
     strsignal(sig_num));
 
     }
   }
   respawn = 1;
-  should_exit = 0;
   signal(SIGHUP, catch_hup);
 }
 
 
   setup_signal_handlers(0);
 
-  while (respawn) {
+  while (respawn && !should_exit) {
     int diff;
 
     diff = time(NULL) - last_spawn;