Refer to https://en.wikipedia.org/wiki/Unix_signal#SIGKILL, we know that SIGKILL and SIGSTOP can't be caught or ignored. So golang should prevent developers from trying to do that. Now the following code is possible to compile but totally invalid. ``` c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGKILL, syscall.SIGSTOP) ```
Refer to https://en.wikipedia.org/wiki/Unix_signal#SIGKILL, we know that SIGKILL and SIGSTOP can't be caught or ignored. So golang should prevent developers from trying to do that.
Now the following code is possible to compile but totally invalid.