Fix getting kdesktop_pid in kdesktop_lock

This fixes sending a signal on fully activation to kdesktop
SaverEngine. This fixes setting Saving state in SaverEngine.
This fixes hang in processing kdesktop lock dcop call during
the switch to suspend modes when the screen saver is active.
pull/2/head
Slávek Banko 11 years ago
parent 4e5c2c2052
commit cbbc7ad02e

@ -370,6 +370,7 @@ int main( int argc, char **argv )
app.processEvents();
if (args->isSet( "internal" )) {
kdesktop_pid = atoi(args->getOption( "internal" ));
while (signalled_run == FALSE) {
sigset_t new_mask;
struct sigaction act;
@ -483,7 +484,6 @@ int main( int argc, char **argv )
return ret;
}
else {
kdesktop_pid = atoi(args->getOption( "internal" ));
if (kill(kdesktop_pid, 0) < 0) {
// The controlling kdesktop process probably died. Commit suicide...
return 12;

Loading…
Cancel
Save