diff options
| author | Ian Lance Taylor <iant@golang.org> | 2015-01-04 11:36:54 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-01-04 19:41:05 +0000 |
| commit | 1ebfb082a7a5cc31efd572fd88549048a82a5c1c (patch) | |
| tree | 7234885c87ac7e8715085e83307a765df8f21f53 /src/runtime/sigqueue.go | |
| parent | 2958860ee86a732e4a5ef55e48f40559858fa82a (diff) | |
| download | go-1ebfb082a7a5cc31efd572fd88549048a82a5c1c.tar.xz | |
runtime: remove unnecessary GOOS switch
Change-Id: I8f518e273c02110042b08f7c50c3d38a648c8b6e
Reviewed-on: https://go-review.googlesource.com/2281
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime/sigqueue.go')
| -rw-r--r-- | src/runtime/sigqueue.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/runtime/sigqueue.go b/src/runtime/sigqueue.go index 543651076d..fbe3425fa6 100644 --- a/src/runtime/sigqueue.go +++ b/src/runtime/sigqueue.go @@ -160,13 +160,8 @@ func badsignal(sig uintptr) { // call to cgocallback below will bring down the whole process. // It's better to miss a few SIGPROF signals than to abort in this case. // See http://golang.org/issue/9456. - switch GOOS { - case "windows", "plan9": - // no actual SIGPROF is defined, nothing to do - default: - if sig == _SIGPROF && needextram != 0 { - return - } + if _SIGPROF != 0 && sig == _SIGPROF && needextram != 0 { + return } cgocallback(unsafe.Pointer(funcPC(sigsend)), noescape(unsafe.Pointer(&sig)), unsafe.Sizeof(sig)) } |
