From 0208ed4c79ed9aa1a983d372248f781c27969082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 22 Feb 2009 22:30:10 -0500 Subject: [PATCH] Don't close the pty master in forkpty child. --- terminal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/terminal.c b/terminal.c index 462141ef..71c88033 100644 --- a/terminal.c +++ b/terminal.c @@ -506,7 +506,6 @@ terminal_run(struct terminal *terminal, const char *path) pid = forkpty(&master, NULL, NULL, NULL); if (pid == 0) { - close(master); setenv("TERM", "vt100", 1); if (execl(path, path, NULL)) { printf("exec failed: %m\n");