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)
Sun, Jan 11, 10:17 AM
Unknown Object (File)
Sun, Dec 28, 7:44 PM
Unknown Object (File)
Sun, Dec 28, 5:58 PM
Unknown Object (File)
Dec 17 2025, 7:35 PM
Unknown Object (File)
Dec 8 2025, 3:52 AM
Unknown Object (File)
Nov 28 2025, 11:42 PM
Unknown Object (File)
Nov 27 2025, 8:50 PM
Unknown Object (File)
Nov 21 2025, 6:54 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