]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/SocketActivation.pm
tests: use i3_config arg instead of precisely one launch_with_config
[i3/i3] / testcases / lib / SocketActivation.pm
index 5951fd2663c6bb9e415db13750da670a346af132..5a5a4484262b349e7c8c808b9711e9f84222441c 100644 (file)
@@ -49,6 +49,11 @@ sub activate_i3 {
         die "could not fork()";
     }
     if ($pid == 0) {
+        # Start a process group so that in the parent, we can kill the entire
+        # process group and immediately kill i3bar and any other child
+        # processes.
+        setpgrp;
+
         $ENV{LISTEN_PID} = $$;
         $ENV{LISTEN_FDS} = 1;
         delete $ENV{DESKTOP_STARTUP_ID};