mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
* m4/jm-macros.m4 (coreutils_MACROS): Check for ptrace. * src/timeout.c [HAVE_PTRACE && (__linux__ || __ANDROID__)]: Include sys/ptrace.h. (resume_command): New function. (main): Call it if the monitored command has been stopped. * tests/timeout/ptrace-traceme.sh: New file. * tests/local.mk (all_tests): Add the new test case. * NEWS: Mention the improvement. Discovered by Anthropic's OSS Scanner, as bug ANT-2026-AKDIHN0Y. Co-authored-by: Pádraig Brady <P@draigBrady.com>