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, Mar 9, 6:52 PM
Unknown Object (File)
Tue, Mar 3, 8:19 PM
Unknown Object (File)
Sun, Mar 1, 1:15 PM
Unknown Object (File)
Sun, Mar 1, 9:41 AM
Unknown Object (File)
Feb 8 2026, 12:22 PM
Unknown Object (File)
Feb 7 2026, 6:15 PM
Unknown Object (File)
Feb 1 2026, 10:49 AM
Unknown Object (File)
Jan 31 2026, 6:35 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64448
Build 61332: arc lint + arc unit