diff options
| author | Ben Chan <benchan@chromium.org> | 2017-01-10 19:56:50 -0800 |
|---|---|---|
| committer | Sen Jiang <senj@google.com> | 2017-05-31 15:56:02 -0700 |
| commit | 70a21191b545c7c9cc3416c17b3e794c77b2e475 (patch) | |
| tree | 32bbc3b2c4b5d43b32ec58082b6190d5f4fee2a5 /scripts/update_payload/format_utils_unittest.py | |
| parent | dc1189f7c82faead502761da70a993d914de29e0 (diff) | |
update_engine: clean up sleep process in SubprocessTest.CancelTest
SubprocessTest.CancelTest terminates a 'sh' process, which is put into
sleep by executing `sleep 60`. Upon receiving SIGTERM, the 'sleep'
process isn't reaped and thus becomes orphaned. As a remedy, this CL
modifies the shell command to trap SIGTERM and kill the 'sleep' process
upon receiving SIGTERM.
BUG=chromium:678643
TEST=Verified that no orphaned 'sleep' process is left after running
SubprocessTest.CancelTest.
Reviewed-on: https://chromium-review.googlesource.com/427059
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
(cherry picked from commit efb56850475b27ab9197c6010a3f3910b078cdc2)
Change-Id: I7a94b317b524c6de81e94a1f01c29aeb9b3de85c
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions
