diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:45:38 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:45:38 -0600 |
commit | 5a9bf43f0e5e7904b64c432d67d3226e2a7ddfca (patch) | |
tree | 134f8dd308305d364508034e6c389faa9d5dca21 /src/nshd/hackers_git/hackers_watch.go | |
parent | 3ab61b3e5032805784343dcab16f94f8252a88c4 (diff) |
Use systemd/lsb exit codes, consistently
Diffstat (limited to 'src/nshd/hackers_git/hackers_watch.go')
-rw-r--r-- | src/nshd/hackers_git/hackers_watch.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers_watch.go b/src/nshd/hackers_git/hackers_watch.go index a878f4c..3d72f94 100644 --- a/src/nshd/hackers_git/hackers_watch.go +++ b/src/nshd/hackers_git/hackers_watch.go @@ -5,6 +5,7 @@ import ( "os" "path/filepath" "sd_daemon/logger" + "sd_daemon/lsb" ) const ( @@ -128,7 +129,7 @@ func (o *Hackers) worker_handle_passwd(uid int32) { func worker_error(format string, a ...interface{}) { logger.Err(format, a) - os.Exit(255) + os.Exit(int(lsb.EXIT_FAILURE)) } func (o *Hackers) worker() { |