From 9cbf34ac14c637ae96cc1035b97ffe050d9ed9bd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 15 Nov 2011 19:54:03 +0000 Subject: [PATCH] lib/SocketActivation: Bugfix: remove old code which leaks the socket file descriptor to i3 --- testcases/lib/SocketActivation.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/testcases/lib/SocketActivation.pm b/testcases/lib/SocketActivation.pm index e0b08d74..38220547 100644 --- a/testcases/lib/SocketActivation.pm +++ b/testcases/lib/SocketActivation.pm @@ -38,11 +38,6 @@ sub activate_i3 { # remove the old unix socket unlink($args{unix_socket_path}); - # pass all file descriptors up to three to the children. - # we need to set this flag before opening the socket. - open(my $fdtest, '<', '/dev/null'); - $^F = fileno($fdtest); - close($fdtest); my $socket = IO::Socket::UNIX->new( Listen => 1, Local => $args{unix_socket_path},