Source File
signal_unix.go
Belonging Package
os/signal
// Copyright 2012 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris windowspackage signalimport ()// Defined by the runtime package.func (uint32)func (uint32)func (uint32)func (uint32) boolfunc () uint32func () {for {process(syscall.Signal(signal_recv()))}}func () {watchSignalLoop = loop}const (numSig = 65 // max across all systems)func ( os.Signal) int {switch sig := .(type) {case syscall.Signal::= int()if < 0 || >= numSig {return -1}returndefault:return -1}}func ( int) {signal_enable(uint32())}func ( int) {signal_disable(uint32())}func ( int) {signal_ignore(uint32())}func ( int) bool {return signal_ignored(uint32())}
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |