diff options
author | Alexander Nestorov <alexandernst@gmail.com> | 2014-10-16 09:37:01 +0200 |
---|---|---|
committer | Alexander Nestorov <alexandernst@gmail.com> | 2014-10-16 09:37:01 +0200 |
commit | bc2e4adcdea082fff8ac930b83a6f8cfdae84a3e (patch) | |
tree | eeec8f6b81412cc89dd12dc159c1009dbb07dfe0 /GitAutoDeploy.py | |
parent | 573fedc48fb12b68a0da8cc2927f7830901e9a24 (diff) | |
download | Git-Auto-Deploy-bc2e4adcdea082fff8ac930b83a6f8cfdae84a3e.zip Git-Auto-Deploy-bc2e4adcdea082fff8ac930b83a6f8cfdae84a3e.tar.gz Git-Auto-Deploy-bc2e4adcdea082fff8ac930b83a6f8cfdae84a3e.tar.bz2 |
Set some more exit codes when things went wrong
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-x | GitAutoDeploy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index 0b4aff8..8d1f7da 100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -128,8 +128,8 @@ class GitAutoDeployMain: if(GitAutoDeploy.daemon): pid = os.fork() - if(pid != 0): - sys.exit(1) + if(pid > 0): + sys.exit(0) os.setsid() self.create_pidfile() @@ -239,7 +239,7 @@ class GitAutoDeployMain: elif(signum == 6): print 'Requested close by SIGABRT (process abort signal). Code 6.' - self.exit(1) + self.exit() if __name__ == '__main__': gadm = GitAutoDeployMain() |