oslo.rootwrap/oslo/rootwrap
Jakub Libosvar 56e9cb5b07 Fix exit of subprocess in case it was terminated by signal
If child process of rootwrap is terminated by signal, exit code should
be 128 + N, where N is number of signal. According [1]
subprocess.Popen.returncode returns -N. sys.exit interprets negative
signed byte as unsigned thus original exit code is 256 - N instead of
128 + N.

[1]
https://docs.python.org/2/library/subprocess.html#subprocess.Popen.returncode

Change-Id: I43b4c959a98f8f620466c77de4cd5b724b09e5a8
Closes-Bug: #1364822
2014-10-21 12:44:25 +02:00
..
__init__.py Trivial changes from oslo-incubator 2014-02-20 11:56:37 +01:00
client.py Add an option to run rootwrap as a daemon 2014-08-13 20:42:59 +04:00
cmd.py Fix exit of subprocess in case it was terminated by signal 2014-10-21 12:44:25 +02:00
daemon.py Add an option to run rootwrap as a daemon 2014-08-13 20:42:59 +04:00
filters.py Add an option to run rootwrap as a daemon 2014-08-13 20:42:59 +04:00
jsonrpc.py Add an option to run rootwrap as a daemon 2014-08-13 20:42:59 +04:00
wrapper.py Add an option to run rootwrap as a daemon 2014-08-13 20:42:59 +04:00