9cb14b5166
To be able to communicate with a child process via stdin, stdout and stderr, the CreateProcess() parameter bInheritHandles must be set to TRUE. But this causes *all* handles to be inherited, including sockets. As a result, the server socket was inherited by the process running adb to execute the server on the device, so it could not be closed properly, causing other scrcpy instances to fail. To fix the issue, use an extended API to explicitly set the HANDLEs to inherit: - <https://stackoverflow.com/a/28185363/1987178> - <https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873> Fixes #2779 <https://github.com/Genymobile/scrcpy/issues/2779> PR #2783 <https://github.com/Genymobile/scrcpy/pull/2783> |
||
---|---|---|
.. | ||
src | ||
tests | ||
meson.build | ||
scrcpy.1 |