summaryrefslogtreecommitdiff
path: root/src/syscall/asm_darwin_386.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-19 14:16:12 -0500
committerRuss Cox <rsc@golang.org>2014-11-19 14:16:12 -0500
commit880ebd0ce5e22be226cb6a3a6afd4cdc421f636c (patch)
treeea0a68f707af1d805c612090ad5f76bbf6b8d9dc /src/syscall/asm_darwin_386.s
parentc1f8c907e222448ad705cc8cd00502925f23c140 (diff)
downloadgo-880ebd0ce5e22be226cb6a3a6afd4cdc421f636c.tar.gz
undo CL 131750044 / 2d6d44ceb80e
Breaks reading from stdin in parent after exec with SysProcAttr{Setpgid: true}. package main import ( "fmt" "os" "os/exec" "syscall" ) func main() { cmd := exec.Command("true") cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true} cmd.Run() fmt.Printf("Hit enter:") os.Stdin.Read(make([]byte, 100)) fmt.Printf("Bye\n") } In go1.3, I type enter at the prompt and the program exits. With the CL being rolled back, the program wedges at the prompt. ??? original CL description syscall: SysProcAttr job control changes Making the child's process group the foreground process group and placing the child in a specific process group involves co-ordination between the parent and child that must be done post-fork but pre-exec. LGTM=iant R=golang-codereviews, gobot, iant, mikioh.mikioh CC=golang-codereviews https://codereview.appspot.com/131750044 Committer: Ian Lance Taylor <iant@golang.org> ??? LGTM=minux, dneil R=dneil, minux CC=golang-codereviews, iant, michael.p.macinnis https://codereview.appspot.com/174450043
Diffstat (limited to 'src/syscall/asm_darwin_386.s')
0 files changed, 0 insertions, 0 deletions