]> git.sur5r.net Git - i3/i3/commitdiff
lib/SocketActivation: Bugfix: remove old code which leaks the socket file descriptor...
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 15 Nov 2011 19:54:03 +0000 (19:54 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 15 Nov 2011 19:54:03 +0000 (19:54 +0000)
testcases/lib/SocketActivation.pm

index e0b08d746fc3bde846b502c159f8e06b94cdd095..38220547e55cb96a18e13b5fff0b5ab664fb0c97 100644 (file)
@@ -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},