-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
timeout: fails to kill child process when given as sh -c #3489
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
Comments
I cannot replicate your observations, I tried the three examples you provided and found that all kill the child process correctly. |
Interesting, maybe this fixed it? #4315 Also, thanks for checking and following up on all these issues! |
Yep, I just went through the code and found that PR/commit too. It looks good to me as well. coreutils/tests/by-util/test_timeout.rs Lines 147 to 160 in 862a2df
and, when running locally with cargo test --features timeout test_kill_subprocess , the test fails, because the stderr does not contain Terminated . I will create a PR that fixes this and adds some documentation (since I didn't immediately understand what the test was doing and why).
|
Nice, I'm glad this was fixed! I'll close the issue then. |
Uh oh!
There was an error while loading. Please reload this page.
Environment: Ubuntu 20.04.4, coreutils v8.30,
sh
links todash
The uutils version of timeout fails to kill the child process when it is given as
sh -c "..."
.GNU timeout:
uutils timeout:
However, uutils timeout does correctly kill the child process when it is given directly:
This causes an orphan process in the GNU test case
tests/split/filter.sh
.The text was updated successfully, but these errors were encountered: