diff options
author | Rich Felker <dalias@aerifal.cx> | 2023-02-28 15:44:46 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-02-28 15:44:46 -0500 |
commit | 3281047cfca0f3848d0613e3c0d19d41b0531564 (patch) | |
tree | 92a91bd746e35c5bc9a7f59db9d1d73c89fa50af /src/sched | |
parent | c99b7daafdbf1e2415bf408e67ca7813e7ddeedf (diff) | |
download | musl-3281047cfca0f3848d0613e3c0d19d41b0531564.tar.gz musl-3281047cfca0f3848d0613e3c0d19d41b0531564.tar.bz2 musl-3281047cfca0f3848d0613e3c0d19d41b0531564.tar.xz musl-3281047cfca0f3848d0613e3c0d19d41b0531564.zip |
dup3: don't set FD_CLOEXEC on failure on kernels without dup3 syscall
this is the best-effort fallback path for kernels that can't actually
support the dup3 functionality. it was setting FD_CLOEXEC flag on the
target fd (new) even if the dup2 operation failed. normally that
shouldn't happen under correct usage, but it's possible if the source
fd is not open or intentionally invalid (e.g. -1).
Diffstat (limited to 'src/sched')
0 files changed, 0 insertions, 0 deletions