[Toybox] [PATCH] timeout: fix exit status for sneaky subprocesses.

enh enh at google.com
Fri Sep 13 15:36:13 PDT 2019


There's nothing to stop a subprocess from catching our SIGTERM on timeout
and exiting, causing us to incorrectly report that it didn't time out.
Android's ART has a utility that does exactly this.

Explicitly catch this case, and add corresponding tests.

Bug: http://b/141007616
---
 tests/timeout.test   | 15 +++++++++++++++
 toys/other/timeout.c |  5 +++++
 2 files changed, 20 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-timeout-fix-exit-status-for-sneaky-subprocesses.patch
Type: text/x-patch
Size: 2382 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190913/ba855c10/attachment-0002.bin>


More information about the Toybox mailing list