[PATCH] Reset signal handlers in KProcess child
Robert Knight
robertknight at gmail.com
Sat Jan 26 04:22:55 GMT 2008
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)
The attached patch causes KProcess to reset its child's signal
handlers back to SIG_DFL in setupChildProcess(). Is this the right
solution?
Regards,
Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kprocess_reset_signal_handlers_in_child.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080126/aff563bc/attachment.bin>
More information about the kde-core-devel
mailing list