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
F131880414: D50537.id158201.diff
Sat, Oct 11, 10:29 PM
Unknown Object (File)
Sun, Oct 5, 6:48 PM
Unknown Object (File)
Sun, Oct 5, 5:54 PM
Unknown Object (File)
Sun, Oct 5, 5:52 PM
Unknown Object (File)
Thu, Sep 25, 5:12 PM
Unknown Object (File)
Thu, Sep 25, 12:19 PM
Unknown Object (File)
Wed, Sep 17, 8:09 AM
Unknown Object (File)
Sun, Sep 14, 6:14 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