diff options
-rw-r--r-- | sd_daemon/lsb/exit-status.go | 8 |
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) |