]> Cypherpunks repositories - gostls13.git/commit
syscall: add tty support to StartProcess
authorKen Rockot <ken@oz.gs>
Wed, 22 Jun 2011 22:07:20 +0000 (18:07 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jun 2011 22:07:20 +0000 (18:07 -0400)
commitc8443d72429a9b3439f309512ae90a37c1235829
tree41fbc7fb8af706c34bfad148a5685420cf874d30
parent8a4acd53f12014ba29de7fb12ab4e6d4c6ca7d9b
syscall: add tty support to StartProcess

These changes add a Ctty int field to the Unix syscall.ProcAttr which,
if set >= 0 in conjuction with Setsid=true, will be used by
forkAndExecInChild as the file descriptor for the new child's
controlling terminal.

Necessary changes have been made to mkerrors.sh to generate defs for
TIOC*, though changes to its output files are not included here.
The changes made should support Linux, FreeBSD and Darwin, at least.

R=iant, bradfitz, r, rsc, borman
CC=golang-dev
https://golang.org/cl/4532075
src/pkg/syscall/mkerrors.sh