[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Saving KConfig data from "Admin Mode" KControl module
From: Craig Drummond <cpdrummond () freeuk ! com>
Date: 2001-11-19 10:53:27
[Download RAW message or body]
Hi,
I've been having problems saving KConfig data from a KControl module
that's started via the "Administrator Mode" button. What’s happening is
that the module is started via "kcmshell" with KProcess, and is then
embedded within the user's KControl.
The problem comes when the module is unloaded - basically KProcess is
sending a SIGKILL to the "kcmshell" process, meaning that the running
module never gets to call its destructors. Therefore, KConfig doesn’t
do a sync() to save the contents.
Would it not be better to have KProcess send a SIGTERM – and then have "
kcsmshell" use a signal handler to catch this, and then destroy the
KApplication (which would then mean the destructors would be called)?
Perhaps the constructor for KProcess could take an argument specifying
if SIGKILL or SIGTERM should be sent? This way everything else should
still work as before.
Ciao
Craig.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic