mirror of
https://github.com/kataras/iris.git
synced 2026-01-03 10:17:03 +00:00
version 12.1.5
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
This commit is contained in:
@@ -64,13 +64,11 @@ func (i *interruptListener) notifyAndFire() {
|
||||
os.Interrupt,
|
||||
syscall.SIGINT, // register that too, it should be ok
|
||||
// os.Kill is equivalent with the syscall.SIGKILL
|
||||
os.Kill,
|
||||
syscall.SIGKILL, // register that too, it should be ok
|
||||
// os.Kill,
|
||||
// syscall.SIGKILL, // register that too, it should be ok
|
||||
// kill -SIGTERM XXXX
|
||||
syscall.SIGTERM,
|
||||
)
|
||||
select {
|
||||
case <-ch:
|
||||
i.FireNow()
|
||||
}
|
||||
<-ch
|
||||
i.FireNow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user