D21470: Properly read stderr when data is ready from the daemon.

Luca Carlon noreply at phabricator.kde.org
Tue May 28 22:20:53 BST 2019


luc4 created this revision.
luc4 added reviewers: davidedmundson, mlaurent.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
luc4 requested review of this revision.

REVISION SUMMARY
  When stderr data is sent from the daemon, it seems that libksysguard was actually reading the stdout buffer. Also, as the comment states, it was trying to read potentially incomplete UTF-8 data. This patch reads from stderr and also only reads entire lines, preventing incomplete UTF-8 data buffers.

REPOSITORY
  R111 KSysguard Library

REVISION DETAIL
  https://phabricator.kde.org/D21470

AFFECTED FILES
  ksgrd/SensorShellAgent.cpp

To: luc4, davidedmundson, mlaurent
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190528/17f95ec7/attachment.html>


More information about the Plasma-devel mailing list