scrcpy/app
Romain Vimont 10b749e27d Kill the server only after a small delay
Let the server terminate properly once all the sockets are closed.

If it does not terminate (this can happen if the device is asleep), then
kill it.

Note: since the server process termination is detected by a flag set
after waitpid() returns, there is a small chance that the process
terminates (and the PID assigned to a new process) before the flag is
set but before the kill() call. This race condition already existed
before this commit.

Fixes #1992 <https://github.com/Genymobile/scrcpy/issues/1992>
2021-01-01 23:57:01 +01:00
..
src Kill the server only after a small delay 2021-01-01 23:57:01 +01:00
tests Customize shortcut modifier 2020-08-01 16:31:27 +02:00
meson.build Replace noconsole binary by a wrapper script 2020-12-22 18:51:59 +01:00
scrcpy.1 Document --encoder option 2020-11-08 21:11:12 +01:00