aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcsh
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2025-04-21 12:13:43 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2025-08-12 21:20:24 +0000
commit01bb889cc1b1863798ae65f95769c227bae297c3 (patch)
tree06ef0009b73adfd36a9c720cb6cf55b823c7cdb4 /contrib/tcsh
parent77a0173ca956f9f765920fe8195b951c525671c4 (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 'contrib/tcsh')
0 files changed, 0 insertions, 0 deletions