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

add a _signal keyword to specify what signal will be used to kill the process on timeout #171

Closed
davidvilla opened this issue Dec 15, 2013 · 1 comment

Comments

@davidvilla
Copy link

No description provided.

@davidvilla davidvilla reopened this Dec 15, 2013
amoffat pushed a commit that referenced this issue Dec 29, 2014
@amoffat
Copy link
Owner

amoffat commented Dec 29, 2014

on release-1.10 branch:

import sh
import signal

try:
    sh.sleep(3, _timeout=1, _timeout_signal=signal.SIGQUIT)
except sh.TimeoutException as e:
    assert e.exit_code == signal.SIGQUIT

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

No branches or pull requests

2 participants