HomeFreeBSD

diff3: set O_CLOEXEC on pipes

Description

diff3: set O_CLOEXEC on pipes

This avoid leaking pipe fd in children and simplifies the code

MFC After: 1 week
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D56120

(cherry picked from commit 945e60e018c287f8097f3ee4a30ccf4921845aa1)

Details

Provenance
baptAuthored on Mar 28 2026, 8:41 AM
Reviewer
kib
Differential Revision
D56120: diff3: set O_CLOEXEC on pipes
Parents
rG0c0e08be01a7: diff: handle read(2) failures
Branches
Unknown
Tags
Unknown