[Konsole-devel] [Bug 134581] confirm quit: single tab with running process

Robert Knight robertknight at gmail.com
Sun Sep 24 11:05:57 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134581         




------- Additional Comments From robertknight gmail com  2006-09-24 13:05 -------
> I know konsole is full aware where the process is finished 
> because it changes the window titles. But there is no warning 
> when I try to close window when the process is running. 

No, Konsole is not aware of whether processes are running in the shells or not.  The program running in the shell is able to set the Konsole title by putting certain sequences of characters in the output stream.

Unfortunately the only way I know of reliably finding out whether there is a program running in the shell is to scan the contents of the /proc filesystem and looking for processes which list the shell process as their parent.  This is a little slow, but not impossible.

Konsole could probably make an intelligent guess as to whether or not a program is running by looking at the amount of time since output from the program running in the shell was received.



More information about the konsole-devel mailing list