Bug 439919

Summary: kio_http_cache_cleaner is not terminated after the main application is finished
Product: [Frameworks and Libraries] frameworks-kio Reporter: Ralf Habacker <ralf.habacker>
Component: HTTPAssignee: KIO Bugs <kio-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.84.0   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ralf Habacker 2021-07-15 22:39:53 UTC
SUMMARY
After working for some time with http kioslaves and the env setting KDE_FORK_SLAVES=1, I noticed that the helper process kio_http_cache_cleaner was started but not finished. This leads to problems with safely removing the stick for portable installations that were started from a USB stick, for example.

In KDE4 times, this (and other) process(es) were terminated by the `kdeinit4 --shutdown` command after detecting that the main application had been terminated. The listed detection was done by a KDE autostart application called `kwinshutdown` from the package kdebase-runtime, which was started in the background via the automatic execution of `kdeinit` on main application startup. 

For KF5 single application packages on Windows, as currently provided by the KDE CI, there should also be corresponding possibilities to automatically terminate background programs (such as `kio_http_cache_cleaner`) when the main application is terminated.
Comment 1 Ralf Habacker 2021-07-18 05:53:46 UTC
> For KF5 single application packages on Windows, as currently provided by the KDE CI

Appimage packages on Linux may also affected by this issue.
Comment 2 Ralf Habacker 2021-10-28 09:31:55 UTC
see also https://invent.kde.org/frameworks/kio/-/merge_requests/499
Comment 3 Bug Janitor Service 2021-10-28 09:47:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/620