Now sets the process group of the terminal, so that signals are delivered (you can now Ctrl-C apps, at least in theory :)).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12115 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-03-29 14:05:34 +00:00
parent ccaabbeff6
commit 78924f7e7b

View File

@ -270,6 +270,7 @@ start_process(int argc, const char **argv, struct console *con)
pid = load_image(argc, argv, (const char **)environ);
resume_thread(pid);
setpgid(pid, 0);
tcsetpgrp(con->tty_slave_fd, pid);
dup2(saved_stdin, 0);
dup2(saved_stdout, 1);