summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-23 22:27:09 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-23 22:27:09 +0000
commit9b7a5f39380ca50f0efbb30689cd3ca97bac3920 (patch)
tree9bc439a07f41fdda79f9c4b4be6b9834c92bad62
parentd137d9f75e81ce2e5f27247b831cbf4f7c21efdd (diff)
downloaduuterm-9b7a5f39380ca50f0efbb30689cd3ca97bac3920.tar.gz
returning in the child process is a very bad idea!
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index b9edca2..f7d23b8 100644
--- a/tty.c
+++ b/tty.c
@@ -57,7 +57,7 @@ int uutty_open(char **cmd, int w, int h)
if (!s) s = "/bin/sh";
execl(s, s, (char *)0);
}
- return 1;
+ _Exit(1);
}
uutty_resize(ptm, w, h);