Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
criu-ns: use os.waitstatus_to_exitcode()
os.WEXITSTATUS() returns the process exit status and it should be used only if WIFEXITED() is true, i.e., the process terminated normally. os.waitstatus_to_exitcode() does the same as os.WEXITSTATUS() but it also handles the case when the process has been terminated by a signal. Suggested-by: Andrei Vagin <avagin@gmail.com> Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
- Loading branch information