Add a BlockinApp util class to find process blockng access
AbandonedPublic

Authored by meven on Aug 17 2019, 11:05 AM.

Details

Reviewers
davidedmundson
Group Reviewers
Frameworks
Summary

Uses lsof and kprocesslist to extract names of process blocking on the given files.

It is a port over from ksolidnotify.h of plasma-workspace to allow broader use.

CC D19989

Test Plan

Using testBlockingApp test

Diff Detail

Repository
R244 KCoreAddons
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 15212
Build 15230: arc lint + arc unit
meven created this revision.Aug 17 2019, 11:05 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 17 2019, 11:05 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
meven requested review of this revision.Aug 17 2019, 11:05 AM
meven updated this revision to Diff 63911.Aug 17 2019, 11:08 AM

Add copyright

hallas added a subscriber: hallas.Aug 17 2019, 12:02 PM

Hey @meven I have been working on the same thing D21760 - maybe we should consolidate our efforts? The code you have written looks very similar to what I have been doing :) As you can read in the review comments for D21760 the current suggestion is to look into doing a KJob subclass.

meven abandoned this revision.Aug 17 2019, 12:12 PM

Hey @meven I have been working on the same thing D21760 - maybe we should consolidate our efforts? The code you have written looks very similar to what I have been doing :) As you can read in the review comments for D21760 the current suggestion is to look into doing a KJob subclass.

Great suggestion I missed this prior diff.

Abandoned in favor of D21760 and adding a KJob for this use case

Hey @meven I have been working on the same thing D21760 - maybe we should consolidate our efforts? The code you have written looks very similar to what I have been doing :) As you can read in the review comments for D21760 the current suggestion is to look into doing a KJob subclass.

Great suggestion I missed this prior diff.

Abandoned in favor of D21760 and adding a KJob for this use case

I am currently working on re-working the code to derive from KJob, will post an updated patch soon :) Also, please take a look at the code and come with review comments/suggestions :)