signal: don't attempt to catch SIGSTOP

In this commit, we modify the set of default signals we attempt to catch in
order to execute a graceful shutdown. Before this commit, we would attempt
to catch/register for `SIGSTOP`. There're two issues with this

  1. `SIGSTOP` is meant to be used in combination with `SIGCONCT` to allow a
  process to be paused/resumed. Therefore, our action of shutting down once
  received was incorrect.

  2. `SIGSTOP` doesn't exist on windows, so users aren't able to compile on
  this platform without modifying the codebase.
This commit is contained in:
Olaoluwa Osuntokun 2019-04-03 13:13:03 -07:00
parent fa73a60167
commit 0ca65208c5
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -32,7 +32,6 @@ func init() {
os.Kill,
syscall.SIGABRT,
syscall.SIGTERM,
syscall.SIGSTOP,
syscall.SIGQUIT,
}
signal.Notify(interruptChannel, signalsToCatch...)