diff options
author | Kenny Levinsen <kl@kl.wtf> | 2025-04-21 12:13:43 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2025-08-12 21:20:24 +0000 |
commit | 01bb889cc1b1863798ae65f95769c227bae297c3 (patch) | |
tree | 06ef0009b73adfd36a9c720cb6cf55b823c7cdb4 /lib/libc/tests/stdlib/cxa_atexit_test.c | |
parent | 77a0173ca956f9f765920fe8195b951c525671c4 (diff) |
wordexp(3): Handle ECHILD from waitpidstable/13
If the calling process has used SIG_IGN as handler or set the
SA_NOCLDWAIT flag for SIGCHLD, processes will be automatically reaped on
exit and calls to waitpid(3) will therefore fail with ECHILD.
We waitpid primarily to reap our child so that the caller does not have
to worry about it. ECHILD indicates that there is no child to reap, so
we can just treat that as a success and move on.
Signed-off-by: Kenny Levinsen <kl@kl.wtf>
Tested by: Jan Beich
Pull Request: https://github.com/freebsd/freebsd-src/pull/1675
(cherry picked from commit da9e73e5d483c47e67b3094356dd4b640749849e)
Diffstat (limited to 'lib/libc/tests/stdlib/cxa_atexit_test.c')
0 files changed, 0 insertions, 0 deletions