Use same file descriptor for notification and reading

Authored by fvogt on Jul 15 2017, 2:28 PM.

Description

Use same file descriptor for notification and reading

Summary:
Otherwise we wait for data on a different descriptor than we read from,
which results in missing notifications if data lands in a buffer.

Test Plan:
No modules were loaded after reloading the extension from the browser,
this is due to the settings changed message not getting received by the host
as it was in quick succession to the setEnvironment message. With this patch
it now works reliably.

Reviewers: Plasma, broulik, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

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

Details