rootwrap returns wrong exit code of subprocess
Bug #1364822 reported by
Jakub Libosvar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.rootwrap |
Fix Released
|
Medium
|
Jakub Libosvar |
Bug Description
If child process of rootwrap is terminated by signal, exit code should be 128 + N where N is number of signal. According [1] subprocess.
e.g.
./rootwrap process # starts two processes
kill -9 $(pidof process) # Popen.returncode is -9, rootwrap calls sys.exit(-9)
echo $?
247 # instead of expected 137 (-9 signed char is binary 11110111 which is 247 in unsigned char)
[1] https:/
Changed in oslo.rootwrap: | |
milestone: | juno-rc1 → next-juno |
Changed in oslo.rootwrap: | |
milestone: | next-juno → next-kilo |
Changed in oslo.rootwrap: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/118569
Review: https:/