Don't close the pty master in forkpty child.

dev
Kristian Høgsberg 16 years ago
parent db6c2f3f0e
commit 0208ed4c79
  1. 1
      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");

Loading…
Cancel
Save