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:
@@ -270,6 +270,7 @@ start_process(int argc, const char **argv, struct console *con)
|
|||||||
pid = load_image(argc, argv, (const char **)environ);
|
pid = load_image(argc, argv, (const char **)environ);
|
||||||
resume_thread(pid);
|
resume_thread(pid);
|
||||||
setpgid(pid, 0);
|
setpgid(pid, 0);
|
||||||
|
tcsetpgrp(con->tty_slave_fd, pid);
|
||||||
|
|
||||||
dup2(saved_stdin, 0);
|
dup2(saved_stdin, 0);
|
||||||
dup2(saved_stdout, 1);
|
dup2(saved_stdout, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user