1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:34:40 -07:00

runtime: remove unnecessary GOOS switch

Change-Id: I8f518e273c02110042b08f7c50c3d38a648c8b6e
Reviewed-on: https://go-review.googlesource.com/2281
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Ian Lance Taylor 2015-01-04 11:36:54 -08:00
parent 2958860ee8
commit 1ebfb082a7

View File

@ -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))
}