[PATCH] Reset signal handlers in KProcess child

Dmitry Suzdalev dimsuzkde at gmail.com
Sat Jan 26 11:51:17 GMT 2008

Hi Robert!

On Saturday 26 January 2008 07:22:55 Robert Knight wrote:
> Hi,
> K3Process used to reset signal handler for all signals to SIG_DFL just
> after forking.  QProcess/KProcess currently do not do this.  This
> caused a problem in Konsole where pressing Ctrl+C did terminate many
> programs run in the shell because they inherited a SIG_IGN handler for
> the SIGINT signal from the shell which inherited it from Konsole.
> Konsole ultimately inherited SIGINT from somewhere else, it looks like
> KDM might be the cause (See process.c:Fork)
I can confirm that your patch fixes Ctrl-C for me.
Yay! :)

If (as Thiago says) it can't make it to kprocess, perhaps it can be placed in 
qt-copy temporarily?

Anyway, for now I'll keep it as a local change and be happy :)

Thanks for fixing this!


More information about the kde-core-devel mailing list