From: John Hodge Date: Sun, 8 Sep 2013 11:55:24 +0000 (+0800) Subject: Usermode/GUI Terminal - Added setting of controlling PGID X-Git-Tag: rel0.15~247 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=704880994998a15d512860b5bb68d4b7285db510;p=tpg%2Facess2.git Usermode/GUI Terminal - Added setting of controlling PGID --- diff --git a/Usermode/Applications/gui_shell_src/main.c b/Usermode/Applications/gui_shell_src/main.c index 344bba0c..822f28b8 100644 --- a/Usermode/Applications/gui_shell_src/main.c +++ b/Usermode/Applications/gui_shell_src/main.c @@ -85,6 +85,7 @@ int main(int argc, char *argv[], const char **envp) int pid = _SysSpawn("/Acess/Bin/CLIShell", argv, envp, 3, fds, NULL); if( pid < 0 ) _SysDebug("ERROR: Shell spawn failed: %s", strerror(errno)); + _SysIOCtl(fd, PTY_IOCTL_SETPGRP, &pid); _SysClose(fd); }