Bug 102739

Summary: exit status nit passed with signal processExited()
Product: [Applications] konsole Reporter: Christian "Crischan" Wygoda <linux>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian "Crischan" Wygoda 2005-03-29 14:19:36 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    RedHat RPMs
OS:                Linux

I'm using konsole_part and connect to the signal processExited() to get information when the user exited the shell. While in Konsole itself the exit code is used to display a little information about it, in konsole_part it isn't passed by the signal, although the information is available and only a couple (3 or so) lines are needed to do so! Why? Or is there an other way to retrieve the exit code?
Comment 1 Kurt Hindenburg 2005-04-01 03:55:19 UTC
It is possible no one has needed/asked for the exit code in konsole_part before.  What 3 lines of code are needed for this to work?
Comment 2 Peter Rockai 2006-01-17 16:27:00 UTC
There is now (kde 3.5) processExited( KProcess * ) signal in konsole part. The obtained KProcess pointer can be used within the signal handler to obtain exit status of the process. However, it is not guaranteed to remain valid after your slot returns, so please keep that in mind.