Skip to content

Commit

Permalink
properly fix setting the correct exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
JGjorgji committed Jun 25, 2019
1 parent 37e7808 commit 24ebad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chaperone/cproc/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def kill_system(self, errno = None, force = False):
elif self._killing_system:
return

if self._exitcode is None and errno is not None:
if self._exitcode is None and errno != 0:
self._exitcode = 1 # default exit for an error
self.notify.error(errno)

Expand Down
2 changes: 1 addition & 1 deletion chaperone/cproc/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is designed to be used as a package module, but also as a main program runnable
# by Python2 or Python3 which will print the version. Used in setup.py

VERSION = (0,3,12)
VERSION = (0,3,13)
DISPLAY_VERSION = ".".join([str(v) for v in VERSION])

LICENSE = "Apache License, Version 2.0"
Expand Down

0 comments on commit 24ebad5

Please sign in to comment.