]> Cypherpunks repositories - gostls13.git/commit
syscall: Add Foreground and Pgid to SysProcAttr
authorMichael MacInnis <michael.p.macinnis@gmail.com>
Wed, 18 Feb 2015 03:23:16 +0000 (22:23 -0500)
committerIan Lance Taylor <iant@golang.org>
Mon, 23 Mar 2015 15:35:53 +0000 (15:35 +0000)
commitf7befa43a3e5110379a85cabbbc999cf3b5fb9f6
tree41a53d28077f9ff4f1ef94762d90dbcc273d5db9
parent5bf9249edafa26eb2b4d7768a48e5ace8656a01a
syscall: Add Foreground and Pgid to SysProcAttr

On Unix, when placing a child in a new process group, allow that group
to become the foreground process group. Also, allow a child process to
join a specific process group.

When setting the foreground process group, Ctty is used as the file
descriptor of the controlling terminal. Ctty has been added to the BSD
and Solaris SysProcAttr structures and the handling of Setctty changed
to match Linux.

Change-Id: I18d169a6c5ab8a6a90708c4ff52eb4aded50bc8c
Reviewed-on: https://go-review.googlesource.com/5130
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/syscall2_solaris.go
src/runtime/syscall_solaris.go
src/syscall/asm_solaris_amd64.s
src/syscall/exec_bsd.go
src/syscall/exec_linux.go
src/syscall/exec_solaris.go
src/syscall/exec_unix_test.go [new file with mode: 0644]