From 0190bfad1366ba93030169e2e49b92d06e7db4ef 2013-10-29 23:32:43 From: MinRK Date: 2013-10-29 23:32:43 Subject: [PATCH] clarify exit status / signal status comment in _process_posix --- diff --git a/IPython/utils/_process_posix.py b/IPython/utils/_process_posix.py index 4e778f2..9c6054f 100644 --- a/IPython/utils/_process_posix.py +++ b/IPython/utils/_process_posix.py @@ -187,7 +187,9 @@ class ProcessHandler(object): # We follow the subprocess pattern, returning either the exit status # as a positive number, or the terminating signal as a negative - # number. sh returns 128+n for signals + # number. + # on Linux, sh returns 128+n for signals terminating child processes on Linux + # on BSD (OS X), the signal code is set instead if child.exitstatus is None: # on WIFSIGNALED, pexpect sets signalstatus, leaving exitstatus=None if child.signalstatus is None: