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, 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
Unknown Object (File)
Sep 11 2025, 12:42 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