diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 16:59:14 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 16:59:14 -0600 |
commit | df78914cae2dc2e3da5170cf3f9c7b412aed3afa (patch) | |
tree | 9817dd885f6a11fe3b9bdd6d56eddfb15e7634ba /src/nshd/main.go | |
parent | a6c2e22de92f459a52b8151ccc7f7c562c954750 (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.go | 2 |
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", |