]> git.sur5r.net Git - i3/i3/commitdiff
complete-run: close the old socket fd
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Nov 2011 10:24:13 +0000 (10:24 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Nov 2011 10:24:13 +0000 (10:24 +0000)
testcases/lib/SocketActivation.pm

index 36560a8d5113471f0b33f1a5d051fc69bd6f4af2..01b1eb3d5f0ca94aed5be5241c8def963b19f482 100644 (file)
@@ -75,6 +75,7 @@ sub activate_i3 {
         if (fileno($socket) != 3) {
             POSIX::close(3);
             POSIX::dup2(fileno($socket), 3);
+            POSIX::close(fileno($socket));
         }
 
         # Construct the command to launch i3. Use maximum debug level, disable