Skip to content
Snippets Groups Projects
Verified Commit a270ca91 authored by Ophestra's avatar Ophestra
Browse files

fix: do not exit on SIGHUP


Prevent application from dying on some container tools.

Signed-off-by: default avatarOphestra Umiker <cat@ophivana.moe>
parent 01bad741
Branches
Tags
1 merge request!4fix: do not exit on SIGHUP
Pipeline #956 failed
...@@ -24,7 +24,7 @@ func main() { ...@@ -24,7 +24,7 @@ func main() {
}() }()
sig := make(chan os.Signal, 1) sig := make(chan os.Signal, 1)
signal.Notify(sig, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP) signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
if err := serve(sig, db); err != nil { if err := serve(sig, db); err != nil {
log.Printf("cannot serve: %v", err) log.Printf("cannot serve: %v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment