complete-run: close the old socket fd
This commit is contained in:
parent
ee43861fc4
commit
b0ee2dfd32
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue