lib/SocketActivation: Bugfix: remove old code which leaks the socket file descriptor to i3

This commit is contained in:
Michael Stapelberg 2011-11-15 19:54:03 +00:00
parent 433720d27a
commit 9cbf34ac14
1 changed files with 0 additions and 5 deletions

View 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},