summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-11-23 01:38:41 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-11-23 01:38:41 -0500
commit8953b22526dea1af6458f3de17ec96ecf3c417e0 (patch)
tree35a078364b7c13bc8a3f0d1b78a4eef5753ed48b
parent9a0dedd9fd7cf7656edbddc7fe6df80a4301107f (diff)
gometalinter, ish
-rw-r--r--sd_daemon/lsb/exit-status.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/sd_daemon/lsb/exit-status.go b/sd_daemon/lsb/exit-status.go
index 88ff104..14e2128 100644
--- a/sd_daemon/lsb/exit-status.go
+++ b/sd_daemon/lsb/exit-status.go
@@ -17,8 +17,9 @@
package lsb
import (
- "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger"
"os"
+
+ "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger"
)
// systemd daemon(7) recommends using the exit codes defined in the
@@ -81,8 +82,9 @@ const (
EXIT_SMACK_PROCESS_LABEL uint8 = 237
)
-// This is a utility function to defer at the beginning of a goroutine
-// in order to have the correct exit code in the case of a panic.
+// Recover is a utility function to defer at the beginning of a
+// goroutine in order to have the correct exit code in the case of a
+// panic.
func Recover() {
if r := recover(); r != nil {
logger.Err("panic: %v", r)