Merge ~kissiel/checkbox-ng:fix-non-killable-process-nests into checkbox-ng:master
Proposed by
Maciej Kisielewski
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Sylvain Pineau | ||||
Approved revision: | f82f186bf68a95bde0b28efe9a8c556b2d0d4442 | ||||
Merged at revision: | 8df2f5a44fdc6cb06f3636dec018c479e912c2ec | ||||
Proposed branch: | ~kissiel/checkbox-ng:fix-non-killable-process-nests | ||||
Merge into: | checkbox-ng:master | ||||
Diff against target: |
24 lines (+4/-2) 1 file modified
plainbox/impl/execution.py (+4/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Review via email:
|
Description of the change
This patch helps with interrupting runaway processes (groups of processes, to be precise).
For processes that had a structure like this:
foo | bar | baz
In case where foo command failed, if the operator hit ctrl+c the signal went to already non existent pid1, while pipes were still open to the whole chain.
This patch makes checkbox close the pipes when kill command is issued. It also changes the method of killing to the new one, which is more reliable when running root jobs.
Tested by running multiple weird jobs, including the nefarious `more file |cat`. With and without `user: root`.
To post a comment you must log in.
+1