Fix a bug that could result in orphaned sessions if a browser just navigated
away from the page and never returned. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@23 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
parent
35aa1a7881
commit
60d6d8433a
1 changed files with 1 additions and 0 deletions
|
@ -987,6 +987,7 @@ static void launcherDaemon(int fd) {
|
||||||
if (NOINTR(sendmsg(fd, &msg, 0)) != sizeof(pid)) {
|
if (NOINTR(sendmsg(fd, &msg, 0)) != sizeof(pid)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
NOINTR(close(pty));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deleteHashMap(childProcesses);
|
deleteHashMap(childProcesses);
|
||||||
|
|
Loading…
Reference in a new issue