Check for HUP/ERR/NVAL conditions on stdin

Authored by fvogt on Jul 18 2017, 8:30 AM.

Description

Check for HUP/ERR/NVAL conditions on stdin

Summary:
While Qt's event loop checks for POLLHUP, it
treats it exactly like POLLIN and it's not possible
to retrieve that information from Qt. So in the
Connection read handler it needs to be checked for
again.

BUG: 382445

Test Plan:
Before this patch plasma-browser-integration-host
consumed 100% CPU after exiting the browser, 100% reproducible.
Now it quits gracefully.

Reviewers: Plasma, broulik, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D6711

Details

Committed
fvogtJul 18 2017, 8:35 AM
Differential Revision
D6711: Check for HUP/ERR/NVAL conditions on stdin
Parents
R856:24c5b6e1e3eb: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown