Page MenuHomeFreeBSD

flua: fbsd: avoid leaking stdin pipes on error
ClosedPublic

Authored by kevans on May 27 2025, 12:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 8, 3:52 AM
Unknown Object (File)
Fri, Nov 28, 11:42 PM
Unknown Object (File)
Thu, Nov 27, 8:50 PM
Unknown Object (File)
Fri, Nov 21, 6:54 AM
Unknown Object (File)
Thu, Nov 20, 1:34 PM
Unknown Object (File)
Sat, Nov 15, 9:29 AM
Unknown Object (File)
Sat, Nov 15, 5:20 AM
Unknown Object (File)
Sat, Nov 15, 2:46 AM
Subscribers

Details

Summary

Additionally, there's no way to get to the end without a valid
stdin_pipe[1] at the moment, so don't check for it. stdin_pipe[0] is
closed earlier, as the parent shouldn't need the read-side of the pipe.

While we're here, also free the file actions earlier -- they're not
necessary once posix_spawn() has returned.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable