diff options
| author | Russ Cox <rsc@golang.org> | 2011-01-18 14:02:41 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-01-18 14:02:41 -0500 |
| commit | acd858eee024469103bce2b9a669e2e96ccbf189 (patch) | |
| tree | c687dc004a336f6c92e67077db92d3a5d60ac494 /src/pkg/os/exec.go | |
| parent | 166b444a9320a6c99f3b6f1f5d2c353c02c5182f (diff) | |
| download | go-acd858eee024469103bce2b9a669e2e96ccbf189.tar.xz | |
syscall: correct WSTOPPED on OS X
Have to set #defines correctly to get correct value.
Otherwise get a mask for use in implementing WIFSTOPPED(status).
Changed WSTOPPED definition in os because on
OS X WSTOPPED and WUNTRACED have different values
even though they seem to mean the same thing.
Fixes #1374.
R=r, r2
CC=golang-dev
https://golang.org/cl/4063042
Diffstat (limited to 'src/pkg/os/exec.go')
| -rw-r--r-- | src/pkg/os/exec.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/os/exec.go b/src/pkg/os/exec.go index 501ebc270f..100d984d17 100644 --- a/src/pkg/os/exec.go +++ b/src/pkg/os/exec.go @@ -67,10 +67,10 @@ type Waitmsg struct { // Options for Wait. const ( - WNOHANG = syscall.WNOHANG // Don't wait if no process has exited. - WSTOPPED = syscall.WSTOPPED // If set, status of stopped subprocesses is also reported. - WUNTRACED = WSTOPPED - WRUSAGE = 1 << 20 // Record resource usage. + WNOHANG = syscall.WNOHANG // Don't wait if no process has exited. + WSTOPPED = syscall.WSTOPPED // If set, status of stopped subprocesses is also reported. + WUNTRACED = syscall.WUNTRACED // Usually an alias for WSTOPPED. + WRUSAGE = 1 << 20 // Record resource usage. ) // WRUSAGE must not be too high a bit, to avoid clashing with Linux's |
