D8806: Do not leak rfkill file descriptors.
Oliver Freyermuth
noreply at phabricator.kde.org
Tue Nov 14 08:11:27 UTC 2017
ofreyermuth added a comment.
In https://phabricator.kde.org/D8806#167483, @drosca wrote:
> Just for the record, how does Konsole inherit this fd when BluezQt is only used in plasmashell + kded and KDE apps are afaik not forked from these processes?
What exactly happens depends on how Konsole is started.
If it's started via plasmashell (e.g. menu), the process tree is:
kdeinit5: Running...
\_ /usr/lib64/libexec/kf5/klauncher --fd=9
\_ kded5 [kdeinit5]
\_ /usr/bin/ksmserver
| \_ /usr/bin/kwin_x11 -session 10cf9da065000150283451700000087800055_1510626492_975085
| \_ /usr/bin/plasmashell
| | \_ /usr/bin/konsole
| | \_ /bin/zsh
| | \_ ps faux
If you register a custom shortcut to start a terminal and launch Konsole via that, you end up with:
kdeinit5: Running...
\_ /usr/lib64/libexec/kf5/klauncher --fd=9
\_ kded5 [kdeinit5]
| \_ /usr/bin/konsole
| \_ /bin/zsh
| \_ ps faux
\_ /usr/bin/ksmserver
So it's either forked from plasmashell or kded on my system at least.
The issue has also been observed before: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860269
but sadly the fix got lost in the Debian bugtracker.
REPOSITORY
R269 BluezQt
REVISION DETAIL
https://phabricator.kde.org/D8806
To: ofreyermuth, davidedmundson
Cc: drosca, bshah, broulik, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171114/09c82fa0/attachment.html>
More information about the Kde-frameworks-devel
mailing list