diff options
author | Michael MacInnis <michael.p.macinnis@gmail.com> | 2015-02-17 22:23:16 -0500 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2015-03-23 15:35:53 +0000 |
commit | f7befa43a3e5110379a85cabbbc999cf3b5fb9f6 (patch) | |
tree | 41a53d28077f9ff4f1ef94762d90dbcc273d5db9 /src/runtime/syscall2_solaris.go | |
parent | 5bf9249edafa26eb2b4d7768a48e5ace8656a01a (diff) | |
download | go-f7befa43a3e5110379a85cabbbc999cf3b5fb9f6.tar.gz go-f7befa43a3e5110379a85cabbbc999cf3b5fb9f6.zip |
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>
Diffstat (limited to 'src/runtime/syscall2_solaris.go')
-rw-r--r-- | src/runtime/syscall2_solaris.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/syscall2_solaris.go b/src/runtime/syscall2_solaris.go index cbf2a95329..1b415166a4 100644 --- a/src/runtime/syscall2_solaris.go +++ b/src/runtime/syscall2_solaris.go @@ -15,6 +15,7 @@ import _ "unsafe" // for go:linkname //go:cgo_import_dynamic libc_execve execve "libc.so" //go:cgo_import_dynamic libc_fcntl fcntl "libc.so" //go:cgo_import_dynamic libc_gethostname gethostname "libc.so" +//go:cgo_import_dynamic libc_getpid getpid "libc.so" //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" //go:cgo_import_dynamic libc_pipe pipe "libc.so" //go:cgo_import_dynamic libc_setgid setgid "libc.so" @@ -35,6 +36,7 @@ import _ "unsafe" // for go:linkname //go:linkname libc_execve libc_execve //go:linkname libc_fcntl libc_fcntl //go:linkname libc_gethostname libc_gethostname +//go:linkname libc_getpid libc_getpid //go:linkname libc_ioctl libc_ioctl //go:linkname libc_pipe libc_pipe //go:linkname libc_setgid libc_setgid |