From b0ee2dfd321f645a9f0fabda93487c229f6500ca Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 20 Nov 2011 10:24:13 +0000 Subject: [PATCH] complete-run: close the old socket fd --- testcases/lib/SocketActivation.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/lib/SocketActivation.pm b/testcases/lib/SocketActivation.pm index 36560a8d..01b1eb3d 100644 --- a/testcases/lib/SocketActivation.pm +++ b/testcases/lib/SocketActivation.pm @@ -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 -- 2.39.5