summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/hackers.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 16:59:14 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 16:59:14 -0600
commitdf78914cae2dc2e3da5170cf3f9c7b412aed3afa (patch)
tree9817dd885f6a11fe3b9bdd6d56eddfb15e7634ba /src/nshd/hackers_git/hackers.go
parenta6c2e22de92f459a52b8151ccc7f7c562c954750 (diff)
Use a defer/recover block to have the exit status on panic match LSB.
Diffstat (limited to 'src/nshd/hackers_git/hackers.go')
-rw-r--r--src/nshd/hackers_git/hackers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go
index ecbda7a..814e921 100644
--- a/src/nshd/hackers_git/hackers.go
+++ b/src/nshd/hackers_git/hackers.go
@@ -6,6 +6,7 @@ import (
"nslcd_proto/util"
"nslcd_systemd"
"sd_daemon/logger"
+ "sd_daemon/lsb"
"sync"
)
@@ -47,6 +48,7 @@ func NewHackers(config Config) *Hackers {
}
o.workers.Add(1)
go func() {
+ defer lsb.Recover()
defer o.workers.Done()
o.worker()
}()