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

timeout not honored when running sleep command #685

Open
crashbandicode opened this issue Jun 26, 2024 · 0 comments
Open

timeout not honored when running sleep command #685

crashbandicode opened this issue Jun 26, 2024 · 0 comments

Comments

@crashbandicode
Copy link

I am running python 3.12.4 on Ubnutu 24.04

To reproduce:

then open the python console and do:

import plumbum
mycmd = plumbum.local["timeout"]['-s']['SIGKILL']['1s']['sleep']['infinity']
mycmd(timeout=1)

the above hangs forever. Interestingly the following doesn't hang:

import plumbum
mycmd = plumbum.local["timeout"]['-s']['SIGKILL']['1s']['sleep']['infinity']
mycmd()

So introducing the timeout causes a hang for some reason.

I've been using the timeout linux utility as a workaround for when plumbum doesn't timeout correctly. I'm just now getting around to making a bug and this reproduces the issue.

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

1 participant