mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-09 09:07:42 -04:00
Make sure to use the invalid fd -1 when the output is not opened, and only close valid fds. If fd 0 is closed, then this closes stdin. The second time this happens, some other important fd will have become fd 0, breaking something. This causes random things to break (browser/CEF in reports, but really it could be anything) as the wrong fds get closed.