Source file src/pkg/runtime/sig.go
1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package runtime 6 7 // Sigrecv returns a bitmask of signals that have arrived since the last call to Sigrecv. 8 // It blocks until at least one signal arrives. 9 func Sigrecv() uint32 10 11 // Signame returns a string describing the signal, or "" if the signal is unknown. 12 func Signame(sig int32) string 13 14 // Siginit enables receipt of signals via Sigrecv. It should typically 15 // be called during initialization. 16 func Siginit()