mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
20 lines
333 B
Go
20 lines
333 B
Go
// Copyright (c) 2011 The Grumble Authors
|
|
// The use of this source code is goverened by a BSD-style
|
|
// license that can be found in the LICENSE-file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
)
|
|
|
|
func SignalHandler() {
|
|
for {
|
|
sig := <-signal.Incoming
|
|
if sig != os.SIGINT && sig != os.SIGTERM {
|
|
continue
|
|
}
|
|
os.Exit(0)
|
|
}
|
|
}
|