signals: Index | Files

package signals

import ""


Package Files

signal.go signal_posix.go

func SetupSignalHandler Uses

func SetupSignalHandler() (stopCh <-chan struct{})

SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1.

Package signals imports 3 packages (graph). Updated 2020-11-14. Refresh now. Tools for package owners.