summaryrefslogtreecommitdiff
path: root/psutil/_psposix.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/_psposix.py')
-rw-r--r--psutil/_psposix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psposix.py b/psutil/_psposix.py
index acbc7855..6debdb32 100644
--- a/psutil/_psposix.py
+++ b/psutil/_psposix.py
@@ -110,7 +110,7 @@ def wait_pid(pid, timeout=None):
# process exited due to a signal; return the integer of
# that signal
if os.WIFSIGNALED(status):
- return os.WTERMSIG(status)
+ return -os.WTERMSIG(status)
# process exited using exit(2) system call; return the
# integer exit(2) system call has been called with
elif os.WIFEXITED(status):