HomeFreeBSD

forkpty: Avoid fd leak if fork() fails.

Description

forkpty: Avoid fd leak if fork() fails.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D41491

(cherry picked from commit a4aaee2120ce0a121f86e39e214c2fabe82f2762)

Details

Provenance
desAuthored on Aug 17 2023, 1:48 PM
Reviewer
allanjude
Differential Revision
D41491: forkpty: Avoid fd leak if fork() fails.
Parents
rG3b95950fa3f4: libc: Fix parsing of hexadecimal numbers in strtol() family.
Branches
Unknown
Tags
Unknown