Merge pull request #7568 from crosbymichael/replace-7240

Exit after receiving SIGTERM
This commit is contained in:
Michael Crosby 2014-08-13 12:23:34 -07:00
Родитель c9c271858a cdf8a55670
Коммит 33fa175abf
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -38,6 +38,7 @@ func Trap(cleanup func()) {
if atomic.LoadUint32(&interruptCount) == 1 {
// Call cleanup handler
cleanup()
os.Exit(0)
} else {
return
}