Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openrc-shutdown: broadcast: avoid double fclose
Initialize fd and tp to known invalid values, and reset them after calling close/fclose. This is necessary since these are decleared as static variables. Note the close will will likely still be called twice: we close fd before tp to avoid any buffered writes. Bug: https://bugs.gentoo.org/923326 Signed-off-by: Mike Gilbert <[email protected]>
- Loading branch information