diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
| commit | 3d92926a902017e7cf1f5738e99ff62da596ce12 (patch) | |
| tree | 2b55422c26a48759d56fa91f06df24449e9dfa88 /test/main.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
refactormain
Diffstat (limited to 'test/main.c')
| -rw-r--r-- | test/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/main.c b/test/main.c index 2854d1c..0e14d44 100644 --- a/test/main.c +++ b/test/main.c @@ -42,7 +42,9 @@ int main(void) if (result < 0) { if (errno == EINTR) { kill(pid, SIGKILL); - waitpid(pid, &status, 0); + if (waitpid(pid, &status, 0) < 0) { + fprintf(stderr, " CRASH %s (waitpid after SIGKILL failed: %s)\n", tests[i].name, strerror(errno)); + } fprintf(stderr, " CRASH %s (timeout)\n", tests[i].name); crashed++; } else { |