Xpra: Ticket #5: windows stay visible on the screen even if the server is killed

Currently if the server is killed the _to_server thread exits and closes both _client_conn and _server_conn. However, this does not cause the _to_client thread to stop. As a result an extra "xpra" process stays listed in the process list and users don't notice that the server has died. Only if you try to interactive with any of the windows will the proxy write something to the server socket and notice the problem.

This patch stops _to_client thread when _to_server thread exits and vice versa. Calling _Thread_stop() is bit ugly but the alternative would probably be to use some sort of polling mechanism instead of blocking read() in _copy_loop.

Tue, 05 Jul 2011 07:58:03 GMT - Timo Juhani Lindfors: attachment set

patch to fix the problem

Tue, 05 Jul 2011 19:13:01 GMT - Antoine Martin: status changed; resolution set

merged in r98

Mon, 20 Feb 2012 19:53:09 GMT - Antoine Martin: version, milestone set

Sat, 23 Jan 2021 04:42:59 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/5