From: Michael Stapelberg Date: Sun, 20 Nov 2011 10:24:13 +0000 (+0000) Subject: complete-run: close the old socket fd X-Git-Tag: 4.2~239 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0ee2dfd321f645a9f0fabda93487c229f6500ca;p=i3%2Fi3 complete-run: close the old socket fd --- 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