|
Apparently, timeout(1) utility first sends its signal to the child
process, then installs a signal handler, and finally sends its signal to
the process group. This creates a race between timeout(1) and strace,
the latter can manage to handle tracee syscall exit trap before a signal
to the process group is delivered.
* tests/setpgrp-exec.c: New file.
* tests/strace-DD.test: Rewrite without use of timeout(1).
* tests/strace-DD.expected: Remove.
* tests/Makefile.am (check_PROGRAMS): Add setpgrp-exec.
(EXTRA_DIST): Remove strace-DD.expected.
Fixes: v5.4~106 "tests: check -DD and -DDD options"
|