Source File
signals_unix.go
Belonging Package
src.elv.sh/pkg/sys
// +build !windows,!plan9,!jspackage sysimport ()func () chan os.Signal {// This catches every signal regardless of whether it is ignored.:= make(chan os.Signal, sigsChanBufferSize)signal.Notify()// Calling signal.Notify will reset the signal ignore status, so we need to// call signal.Ignore every time we call signal.Notify.//// TODO: Remove this if, and when, job control is implemented. This// handles the case of running an external command from an interactive// prompt.//// See https://src.elv.sh/issues/988.signal.Ignore(syscall.SIGTTIN, syscall.SIGTTOU, syscall.SIGTSTP)return}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)