opnsense-src/lib/libc
Kenny Levinsen da9e73e5d4 wordexp(3): Handle ECHILD from waitpid
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
2025-07-08 23:27:33 +02:00
..
aarch64 libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
amd64 libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
arm libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
capability cap_rights_is_empty: add MLINK 2024-12-02 15:35:40 -05:00
compat-43 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
csu csu: C standard requires errno on main() entry 2025-06-24 04:11:17 +03:00
db Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gdtoa Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gen wordexp(3): Handle ECHILD from waitpid 2025-07-08 23:27:33 +02:00
gmon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
i386 libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
iconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include libc: Allow more complex expressions for CALL_BLOCK first argument 2025-06-03 15:19:04 +01:00
inet Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
isc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
locale libc: locale: fix EUC shift check 2025-04-20 13:29:45 -05:00
md libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
nameser Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net link_addr: be more strict about address formats 2025-05-15 01:02:52 +01:00
nls libc: remove some XXX for russian translations of errnos 2024-11-03 18:59:16 +02:00
posix1e manuals: Fix "missing end of block" errors 2024-10-07 15:40:58 -03:00
powerpc libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
powerpc64 libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
powerpcspe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
quad Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
regex Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
resolv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
riscv libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
rpc libc/rpc/svc_nl: plg a memory leak 2025-06-20 15:37:47 -07:00
secure libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
softfloat libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
stdio libc: mkostemp(3) should support O_CLOFORK 2025-07-08 15:43:39 +00:00
stdlib getopt_long.3: Use "optstring" consistently 2025-04-29 15:12:37 -04:00
stdtime SPDX: Tag BSD-4.3TAHOE 2025-05-21 12:37:10 -04:00
string manuals: Align our tree with upstream C23 macro 2025-06-12 17:24:10 -04:00
sys closefrom: always use close_range(2) 2025-06-06 22:58:29 +01:00
tests wordexp(3): Handle ECHILD from waitpid 2025-07-08 23:27:33 +02:00
uuid Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
x86/gen Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
xdr libc/xdr: remove bogus lseek(2) for xdr streams 2025-01-06 08:22:14 -08:00
yp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libc.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libc_nossp.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
Makefile.depend Update Makefile.depend files 2024-10-14 10:26:17 -07:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Versions.def Create namespace for the symbols added during 15-CURRENT cycle 2023-09-22 10:16:29 +02:00