Browse code

Exit after receiving SIGTERM

Signed-off-by: Michael Crosby <michael@docker.com>

Michael Crosby authored on 2014/08/14 04:18:23
Showing 1 changed files
... ...
@@ -38,6 +38,7 @@ func Trap(cleanup func()) {
38 38
 						if atomic.LoadUint32(&interruptCount) == 1 {
39 39
 							// Call cleanup handler
40 40
 							cleanup()
41
+							os.Exit(0)
41 42
 						} else {
42 43
 							return
43 44
 						}