Skip to contentSkip to conversation

shell: Fix orphan timeout sleep processes

PATCH New Li Wang 1 participant 1 message May 8, 2021

lore
Share & tools
lore

Li Wang

author
#0 lore raw

v3 cover shell: Fix orphan timeout sleep processes

I fix up tiny issues of Joerg's patch and resend with combine my two follow-up new fixes together to be review.

V2 --> v3
use sleep command in timeout tests
fix code indent issue
fix a bug in _tst_kill_test for kill looping
limit the "kill $sleep_pid; eixt" action

Joerg Vehlow (2):
shell: Extend timeout tests
shell: Prevent orphan timeout sleep processes

Li Wang (2):
lib: ignore SIGINT in _tst_kill_test
lib: reset SIGTERM to original disposition if timeout occured

 lib/newlib_tests/shell/test_timeout.sh | 178 ++++++++++++++++++++++---
 lib/newlib_tests/shell/timeout03.sh    |   4 +-
 lib/newlib_tests/shell/timeout04.sh    |  22 +++
 testcases/lib/tst_test.sh              |  32 +++--
 4 files changed, 204 insertions(+), 32 deletions(-)
 create mode 100755 lib/newlib_tests/shell/timeout04.sh
Signature · 1 line
2.30.2