Do not leak rfkill file descriptors.

Authored by ofreyermuth on Nov 14 2017, 8:30 AM.

Description

Do not leak rfkill file descriptors.

Summary:
They may be leaked into all child processes,
including regular Konsole terminals on KDE.

I observed them showing up at all processes in my KDE session, just checking
ls -la /proc/self/fd

Using O_CLOEXEC, things are resolved properly.

BUG: 386886

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: drosca, bshah, broulik, Frameworks

Tags: Frameworks

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

Details

Committed
droscaNov 14 2017, 8:38 AM
Reviewer
davidedmundson
Differential Revision
D8806: Do not leak rfkill file descriptors.
Parents
R269:dbf37e5f211e: GIT_SILENT Upgrade KF5 version to 5.41.0.
Branches
Unknown
Tags
Unknown