Bug 439919 - kio_http_cache_cleaner is not terminated after the main application is finished
Summary: kio_http_cache_cleaner is not terminated after the main application is finished
Status: ASSIGNED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: HTTP (show other bugs)
Version: 5.84.0
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-15 22:39 UTC by Ralf Habacker
Modified: 2021-10-28 09:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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