Created attachment 67053
Patch to keep Wine applications from locking up [v2]
(In reply to comment #13)
> ...
> I'm not sure about the idea of the proposed patch. If there are seperate
> reading and writing threads, the reading thread could stop reading and we end
> up without any reading thread. In theory this could cause a dead-lock where the
> server refuses to read until some of the already written data gets handled in
> the client, but this seems quite unlikely.
If the reading thread stops reading then wouldn't the writing thread open up to being able to read again?
> For the patch itself: fd.fd is not initialized in the "just writing"-case.
My bad, sorry about that - a corrected version is attached (still works for my test case).
Created attachment 67053
Patch to keep Wine applications from locking up [v2]
(In reply to comment #13)
> ...
> I'm not sure about the idea of the proposed patch. If there are seperate
> reading and writing threads, the reading thread could stop reading and we end
> up without any reading thread. In theory this could cause a dead-lock where the
> server refuses to read until some of the already written data gets handled in
> the client, but this seems quite unlikely.
If the reading thread stops reading then wouldn't the writing thread open up to being able to read again?
> For the patch itself: fd.fd is not initialized in the "just writing"-case.
My bad, sorry about that - a corrected version is attached (still works for my test case).