From: Michael Stapelberg Date: Tue, 15 Nov 2011 19:54:03 +0000 (+0000) Subject: lib/SocketActivation: Bugfix: remove old code which leaks the socket file descriptor... X-Git-Tag: 4.2~253 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cbf34ac14c637ae96cc1035b97ffe050d9ed9bd;p=i3%2Fi3 lib/SocketActivation: Bugfix: remove old code which leaks the socket file descriptor to i3 --- 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},