mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-16 03:14:28 +01:00
The server may die before connecting to the client. In that case, the client was blocked indefinitely (until Ctrl+C) on accept(). To avoid the problem, use a pipe and a select() before calling accept(), so that the blocking call can be interrupted. Once accept() is called, it is guaranteed not to block.