mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-19 04:44:27 +01:00
If SOCK_CLOEXEC exists, then set the flag on socket creation. Otherwise, use fcntl() (or SetHandleInformation() on Windows) to set the flag afterwards. This avoids the sockets to be inherited in child processes. Refs #2783 <https://github.com/Genymobile/scrcpy/pull/2783>