This is an archive of the discontinued LLVM Phabricator instance.

Stop read thread of Communication on EOF
ClosedPublic

Authored by tberghammer on Apr 17 2015, 6:21 AM.

Details

Summary

Stop read thread of Communication on EOF

Previously the read thread was only stopped if CloseOnEOF was set on the
communication channel. It caused it to spin in case of an EOF because
::select() always reported that we can read from the file descriptor.
This CL change this behavior with stopping the read thread on EOF but do
a disconnect only if CloseOnEOF is enabled.

Diff Detail

Repository
rL LLVM

Event Timeline

tberghammer retitled this revision from to Stop read thread of Communication on EOF.
tberghammer updated this object.
tberghammer edited the test plan for this revision. (Show Details)
tberghammer added reviewers: clayborg, labath.
tberghammer added a subscriber: Unknown Object (MLST).
labath edited edge metadata.Apr 17 2015, 6:34 AM

lgtm, but please wait for a signoff from greg

clayborg accepted this revision.Apr 17 2015, 11:08 AM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Apr 17 2015, 11:08 AM
This revision was automatically updated to reflect the committed changes.