complete-run: close the old socket fd

This commit is contained in:
Michael Stapelberg 2011-11-20 10:24:13 +00:00
parent ee43861fc4
commit b0ee2dfd32
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ sub activate_i3 {
if (fileno($socket) != 3) { if (fileno($socket) != 3) {
POSIX::close(3); POSIX::close(3);
POSIX::dup2(fileno($socket), 3); POSIX::dup2(fileno($socket), 3);
POSIX::close(fileno($socket));
} }
# Construct the command to launch i3. Use maximum debug level, disable # Construct the command to launch i3. Use maximum debug level, disable