summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-02-22 22:30:10 -0500
committerKristian Høgsberg <krh@redhat.com>2009-02-22 22:30:10 -0500
commit0208ed4c79ed9aa1a983d372248f781c27969082 (patch)
tree247d2753b54289a9b9d8d71f28c4f2c2306a27d1
parentdb6c2f3f0e355f856baa59423fa84e05269b6125 (diff)
downloadwayland-0208ed4c79ed9aa1a983d372248f781c27969082.tar.gz
wayland-0208ed4c79ed9aa1a983d372248f781c27969082.tar.xz
wayland-0208ed4c79ed9aa1a983d372248f781c27969082.zip
Don't close the pty master in forkpty child.
-rw-r--r--terminal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 462141e..71c8803 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");