Print this page
4736 spamming zlogin with SIGINT will halt the target zone

@@ -552,13 +552,11 @@
  */
 static void
 sig_forward(int s)
 {
         if (child_pid != -1) {
-                pid_t pgid = getpgid(child_pid);
-                if (pgid != -1)
-                        (void) sigsend(P_PGID, pgid, s);
+                (void) sigsend(P_PGID, child_pid, s);
         }
 }
 
 /*
  * reset terminal settings for global environment