Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use signalstatus if exit status is undefined #4458

Merged
merged 2 commits into from Oct 29, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 29, 2013

fixes failing test_exit_code_signal on OS X

fixes failing test_exit_code_signal on OS X
@@ -188,6 +188,13 @@ def system(self, cmd):
# 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should tweak this comment a bit. Something like sh returns 128+n for signals terminating child processes on Linux; on Macs, it passes the complete exit code back to pexpect (that's my understanding of it at present).

@takluyver
Copy link
Member

Alright, this is passing the tests, so I'm merging it. We can always revisit what we return in that corner case if it turns out to be problematic.

takluyver added a commit that referenced this pull request Oct 29, 2013
use signalstatus if exit status is undefined
@takluyver takluyver merged commit 044e9a3 into ipython:master Oct 29, 2013
@minrk minrk deleted the process_raw_osx branch December 24, 2013 21:04
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
use signalstatus if exit status is undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants