From 60d6d8433afbea90d5f64c15895508cf45568762 Mon Sep 17 00:00:00 2001 From: zodiac Date: Thu, 1 Jan 2009 18:17:44 +0000 Subject: [PATCH] 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 --- shellinabox/launcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shellinabox/launcher.c b/shellinabox/launcher.c index ca38d09..d393276 100644 --- a/shellinabox/launcher.c +++ b/shellinabox/launcher.c @@ -987,6 +987,7 @@ static void launcherDaemon(int fd) { if (NOINTR(sendmsg(fd, &msg, 0)) != sizeof(pid)) { break; } + NOINTR(close(pty)); } } deleteHashMap(childProcesses);