Broadcast no more input event on EOF in Communication.cpp
This fixes a dead lock in SynchronizeWithReadThread when the file
descriptor is already at EOF and it is always available for read.
Differential D9071
Broadcase no more input event on EOF in Communication.cpp tberghammer on Apr 17 2015, 2:44 AM. Authored by
Details
Broadcast no more input event on EOF in Communication.cpp This fixes a dead lock in SynchronizeWithReadThread when the file
Diff Detail Event TimelineComment Actions The underlying problem here is that if CloseOnEOF is false, and the other end is closed, the read thread will sit in a busy loop continuously trying to read something (and failing). The right solution is to avoid the busy loop altogether. |