Bug 458112

Summary: kde4: apps keeps run in sudo env after konsole :(
Product: [Fedora] Fedora Reporter: Anton Arapov <anton>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: anton, kevin, ltinkl, nobody, rdieter, tuxbrewr
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-26 15:26:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anton Arapov 2008-08-06 14:32:47 UTC
Description of problem:
%subj%

Version-Release number of selected component (if applicable):
kdebase-4.0.5-5.fc9.x86_64

How reproducible:
every time

Steps to Reproduce:
1. $ konsole
2. $ sudo -i
3. # top
4. *close* konsole by using X at top right
  
Actual results:
$ ps xua | grep top
you'll see top running

Expected results:
killed top, or whatsoever was ran in sudo

Comment 1 Rex Dieter 2008-08-06 14:37:59 UTC
doubt there's anything to do to fix that.  ??

See, top is now running as root, and your user permissions aren't enough to terminate it anymore.

Comment 2 Rex Dieter 2008-08-06 14:39:12 UTC
It *may* be possible, but only if sudo can act as a proxy to forward signals (which I doubt)

Comment 3 Anton Arapov 2008-08-06 14:41:10 UTC
I believe it is odd behaviour ... everything must be killed inside.

can you reproduce the problem?

Comment 4 Rex Dieter 2008-08-06 14:50:53 UTC
I can reproduce it alright, I'm just saying what you want/expect may not be possible.

Comment 5 Kevin Kofler 2008-08-06 15:07:27 UTC
Indeed. And in any case, this is not a bug in Konsole, in fact it has nothing to do with Konsole at all.

Comment 6 Anton Arapov 2008-08-06 17:09:31 UTC
(In reply to comment #4)
Okay,... Why does this work as I'm expecting in gnome-terminal then?

Comment 7 Rex Dieter 2008-08-06 17:13:40 UTC
gnome-terminal does the same as konsole for me. I see top processes (owned by root) still running after close.

Comment 8 Anton Arapov 2008-08-07 08:23:33 UTC
I would like to close kernel issues in the same way... >:)

It _is_ the problem, not the problem of konsole, may be but the problem of kde, may be kwin, I do not know... I just tried to see what the KDE4 _is_... 

Just try to do the same in gnome environment in any terminal(not sure about konsole). It kills everything inside the terminal, no matter in sudo or not.

It works just fine in WMII as well. The only WM/DE so far that did not kill apps inside sudo is KWIN/KDE.

I want it fixed from the moment when the report was marked as NOTABUG! =)

Comment 9 Rex Dieter 2008-08-07 12:18:48 UTC
To be clear and re-iterate.  I can't reproduce this.  gnome-terminal for me does the same thing as konsole.

Comment 10 Anton Arapov 2008-08-07 12:34:46 UTC
Did you try to reproduce it in another WM/DE ?

Comment 11 Anton Arapov 2008-08-08 08:46:55 UTC
had a chance to test in kde3. works fine == everything was killed inside the terminal.

Comment 12 Steven M. Parrish 2008-08-26 15:26:06 UTC
We found that this bug has been already registered in the upstream database (https://bugs.kde.org/show_bug.cgi?id=143880) and believe that it is more appropriate to let it be resolved upstream.

We will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.

Thank you for the bug report.