From 193d9afcdb186902317c5bef5d6c769fc8933f1a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 May 2012 18:22:04 -0500 Subject: Fix desktop lock not engaging on suspend This closes Bug 1003 --- kdesktop/lock/main.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kdesktop/lock') diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index a28d88330..7adbd5745 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -331,6 +331,10 @@ int main( int argc, char **argv ) } else { pid_t kdesktop_pid = atoi(args->getOption( "internal" )); + if (kill(kdesktop_pid, SIGUSR2) < 0) { + // The controlling kdesktop process probably died. Commit suicide... + return 12; + } app.exec(); if (kill(kdesktop_pid, SIGUSR1) < 0) { // The controlling kdesktop process probably died. Commit suicide... -- cgit v1.2.1