summaryrefslogtreecommitdiff
path: root/src/nshd/main.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/main.go
parenta6c2e22de92f459a52b8151ccc7f7c562c954750 (diff)
Use a defer/recover block to have the exit status on panic match LSB.
Diffstat (limited to 'src/nshd/main.go')
-rw-r--r--src/nshd/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nshd/main.go b/src/nshd/main.go
index ebca1a6..bc53711 100644
--- a/src/nshd/main.go
+++ b/src/nshd/main.go
@@ -1,12 +1,14 @@
package main
import (
+ "sd_daemon/lsb"
"nshd/hackers_git"
"nslcd_systemd"
"os"
)
func main() {
+ defer lsb.Recover()
config := hackers_git.Config{
Pam_password_prohibit_message: "",
Yamldir: "/var/cache/parabola-hackers/users",