Exit after receiving SIGTERM

Signed-off-by: Michael Crosby <michael@docker.com>
Upstream-commit: cdf8a55670793a135a53549c5e1877c33a66be0c
Component: engine
This commit is contained in:
Michael Crosby
2014-08-13 12:18:23 -07:00
parent 779c425729
commit 14291aae78
+1
View File
@@ -38,6 +38,7 @@ func Trap(cleanup func()) {
if atomic.LoadUint32(&interruptCount) == 1 {
// Call cleanup handler
cleanup()
os.Exit(0)
} else {
return
}