]> Cypherpunks repositories - gostls13.git/commit
syscall: fix fork-exec/wait inconsistencies for Plan 9
authorAkshat Kumar <seed@mail.nanosouffle.net>
Wed, 23 Jan 2013 03:42:44 +0000 (22:42 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 23 Jan 2013 03:42:44 +0000 (22:42 -0500)
commit7f0d1652a46df1d15d7e80fb34f88b5ebb4ff5f6
tree2ed465dc94ffeae53f4773c386be16e63388048c
parent522562e71214ef3b6cb1e6b84b535049acbcd426
syscall: fix fork-exec/wait inconsistencies for Plan 9

Fixes the fork-exec/wait race condition for ForkExec
as well, by making it use startProcess. This makes the
comment for StartProcess consistent as well.

Further, the passing of Waitmsg data in startProcess
and WaitProcess is protected against possible forks
from outside of ForkExec and StartProcess, which might
cause interference with the Await call.

R=rsc, rminnich, npe, ality
CC=golang-dev
https://golang.org/cl/7128059
src/pkg/syscall/exec_plan9.go