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)
forkpty: Avoid fd leak if fork() fails. Tags None Referenced Files None Subscribers None
Description
Details
|