mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -05:00
Don't close the pty master in forkpty child.
This commit is contained in:
parent
db6c2f3f0e
commit
0208ed4c79
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue