mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Exit after receiving SIGTERM
Signed-off-by: Michael Crosby <michael@docker.com>
This commit is contained in:
parent
c9c271858a
commit
cdf8a55670
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ func Trap(cleanup func()) {
|
||||||
if atomic.LoadUint32(&interruptCount) == 1 {
|
if atomic.LoadUint32(&interruptCount) == 1 {
|
||||||
// Call cleanup handler
|
// Call cleanup handler
|
||||||
cleanup()
|
cleanup()
|
||||||
|
os.Exit(0)
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue