scarlehoff / pyHepGrid

Tool for distributed computing management geared towards HEP applications.
GNU General Public License v3.0
6 stars 4 forks source link

Fix: Don't exit with return os.systems return code #39

Closed marianheil closed 4 years ago

marianheil commented 4 years ago

os.system returns a 2 byte number where the high byte includes the real exit code of a program. However the higher byte is/can be dropped in sys.exit, which only takes 1 byte

see e.g. https://stackoverflow.com/a/6466753 https://docs.python.org/3/library/os.html#os.WEXITSTATUS http://tldp.org/LDP/abs/html/exitcodes.html