diff options
author | Ian Lance Taylor <iant@golang.org> | 2015-12-17 14:49:34 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2015-12-18 20:56:10 +0000 |
commit | f40c05eea437f0c0a04b6615b72b1292ebb97151 (patch) | |
tree | 6c1a920e0848ff5ab3d932c9b98a79dbb6aca20f /src/runtime/defs_darwin.go | |
parent | e5ef5d46932d8f1fbe581ba22fb1d1144fedac5c (diff) | |
download | go-f40c05eea437f0c0a04b6615b72b1292ebb97151.tar.gz go-f40c05eea437f0c0a04b6615b72b1292ebb97151.zip |
runtime: write sigsetstack for Darwin, fix sigaction arg
It turns out that the second argument for sigaction on Darwin has a
different type than the first argument. The second argument is the user
visible sigaction struct, and does not have the sa_tramp field.
I base this on
http://www.opensource.apple.com/source/Libc/Libc-1081.1.3/sys/sigaction.c
not to mention actual testing.
While I was at it I removed a useless memclr in setsig, a relic of the C
code.
This CL is Darwin-specific changes. The tests for this CL are in
https://golang.org/cl/17903 .
Change-Id: I61fe305c72311df6a589b49ad7b6e49b6960ca24
Reviewed-on: https://go-review.googlesource.com/18015
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/runtime/defs_darwin.go')
-rw-r--r-- | src/runtime/defs_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/defs_darwin.go b/src/runtime/defs_darwin.go index 722013ba96..78df4e7ac8 100644 --- a/src/runtime/defs_darwin.go +++ b/src/runtime/defs_darwin.go @@ -152,7 +152,7 @@ type StackT C.struct_sigaltstack type Sighandler C.union___sigaction_u type Sigaction C.struct___sigaction // used in syscalls -// type Sigaction C.struct_sigaction // used by the C library +type Usigaction C.struct_sigaction // used by sigaction second argument type Sigval C.union_sigval type Siginfo C.siginfo_t type Timeval C.struct_timeval |