Open nathany opened 7 years ago
Regarding the documented signals example, os.Kill can't be caught, it's just there for killing other processes.
os.Kill is like kill -9 which kills a process immediately
kill -9
syscall.SIGTERM is equivalent to kill which allows the process time to cleanup
kill
signal.Notify(sigchan, os.Interrupt, syscall.SIGTERM)
ref: #9
Regarding the documented signals example, os.Kill can't be caught, it's just there for killing other processes.
os.Kill is like
kill -9
which kills a process immediatelysyscall.SIGTERM is equivalent to
kill
which allows the process time to cleanupref: #9