Make SIGTERM exit 1

Before 2.2 series, the TERM signal used to not be handled
by the server, so it would not have been a clean exit.
In 2.2, it was changed to process TERM signal as a clean exit
but this affects the behavior of some tools that were expecting
TERM to be exit 1.

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
Waldemar Quevedo
2021-04-12 10:01:34 -07:00
parent 9d8ea6b64a
commit 8daf6e4995

View File

@@ -59,7 +59,7 @@ func (s *Server) handleSignals() {
if !ldm {
s.Shutdown()
os.Exit(0)
os.Exit(1)
}
case syscall.SIGUSR1:
// File log re-open for rotating file logs.