Bug 176963 - when started through kde, all konsole instances share the same PID. Killing one kills all.
Summary: when started through kde, all konsole instances share the same PID. Killing o...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 12:29 UTC by as
Modified: 2008-12-08 12:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description as 2008-12-05 12:29:20 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Fedora RPMs

If I start multiple konsoles using the menu or F2 they all inherit the same PID. As I've read in 161248, this seems to be intentional!?

This has pretty bad side effects though imho. 

If you start multiple konsoles on multiple desktops, and some of the konsoles hang because of some app in the terminal dying for some reason (remote ssh closed or crashed - whatever) then this konsole becomes useless. After a few days you have a large number of useless konsoles - but alas, they can't be killed. If I use xkill on one of them, ALL konsoles die, since they all run under the same PID!

As I see it it's just the way KDE starts the konsole. If there's already a konsole process, it attaches to that. If I start "konsole" from an xterm or another konsole, everything's good, each gets its own process.
But the problem is again there when you have a tab hang, and you want to detach it and kill it. Again, this will kill the parent konsole.
I know that this worked fine in KDE 3, both with starting multiple instances from the GUI, and with detached tabs. I think wasting a few MBs is well worth it in this case, at least there could be an option...

Thanks!
Comment 1 Robert Knight 2008-12-08 12:32:45 UTC
This is correct.  When launched from the GUI Konsole only uses once process for all windows.  For most people I think this works quite well and permits some useful features like tab drag-and-drop between windows.  When started from the terminal a new process is created - mainly to ensure that the environment is inherited from the terminal.