Bug 409730

Summary: "Quit" in GUI does not kill process (sometimes)
Product: [Applications] ktorrent Reporter: Adi <zenwort>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: REPORTED ---    
Severity: normal CC: fhgnne
Priority: NOR    
Version: 5.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Adi 2019-07-11 20:12:00 UTC
SOFTWARE/OS
Installed: openSuse Tumbleweed 20190527, KDE Frameworks 5.58.0, Qt 5.12.3

Affected: ktorrent (5.1.1), akregator (5.11.1), krename (5.0.0) and possibly more.

PROBLEM
If I close the program window (GUI) via the menu with "File -> Quit",  in some cases, according to "top,", the associated process continues running (without being recognized as a "zombie").

A "killall PROGRAMNAME" on the cl then works.

I have over the weeks noticed these continuing processes with
* ktorrent (continues sending tracker requests)
* akregator
* krename
but not systematically looked for this, <em>nor does it happen every time.</em>

Given the previous discussion at
https://linux-club.de/forum/viewtopic.php?f=93&t=122810
the described behaviour may be considered a feature by some people. <em>I consider unwanted network traffic a risk.</em> (Quote: “About a year ago, a dedicated programmer published a library that lets applications just get rid of their skin”) 
I also do have reasons to definetly wanting to end a program to free memory and limit load on MY machine! Specially torrenting with a laptop in somebody else's network is an absolute no-no. akregator's http.so requests also may leak information.

REPRODUCE (using KDE on Linux):
* run "top" in one console
* restart "plasmashell" (killall plasmashell && plasmashell) in another console: this will show for example continuing UTP tracker requests
(if ktorrents quits properly the message "Saving list of peers to /home/SOMWHERE/tor6/peer_list" is shown)
* Quit kTorrent/akregator/krename by using the menu File --> Quit and watch the above
Comment 1 fhgnne 2020-12-26 12:09:57 UTC
I encountered the same problem with konqueror on kubuntu 20.04 LTS.
Close konqueror via the "X" button in the GUI but ps aux on the console still shows a running konqueror instance with sub-processes (e.g. http.so).
Happens with konqueror 5.0.97.