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)
Thu, May 21, 5:17 PM
Unknown Object (File)
Sat, May 9, 10:22 PM
Unknown Object (File)
Thu, May 7, 12:31 AM
Unknown Object (File)
Apr 24 2026, 6:08 AM
Unknown Object (File)
Apr 24 2026, 6:08 AM
Unknown Object (File)
Apr 22 2026, 6:22 PM
Unknown Object (File)
Apr 20 2026, 9:58 AM
Unknown Object (File)
Apr 19 2026, 9:14 PM
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