Usermode/GUI Terminal - Added setting of controlling PGID
authorJohn Hodge <[email protected]>
Sun, 8 Sep 2013 11:55:24 +0000 (19:55 +0800)
committerJohn Hodge <[email protected]>
Sun, 8 Sep 2013 11:55:24 +0000 (19:55 +0800)
Usermode/Applications/gui_shell_src/main.c

index 344bba0..822f28b 100644 (file)
@@ -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);
        }
 

UCC git Repository :: git.ucc.asn.au