mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
Exit on SIGINT and SIGTERM.
This commit is contained in:
parent
fbf81bafe0
commit
1e164668e5
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
@ -25,5 +26,7 @@ func SignalHandler() {
|
||||||
}
|
}
|
||||||
log.Printf("Server %v frozen", sid)
|
log.Printf("Server %v frozen", sid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue