summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock
diff options
context:
space:
mode:
Diffstat (limited to 'kdesktop/lock')
-rw-r--r--kdesktop/lock/lockdlg.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/kdesktop/lock/lockdlg.cc b/kdesktop/lock/lockdlg.cc
index a3fe9828c..d401f0b2f 100644
--- a/kdesktop/lock/lockdlg.cc
+++ b/kdesktop/lock/lockdlg.cc
@@ -422,8 +422,8 @@ void PasswordDlg::reapVerify()
{
::close( sFd );
int status;
- ::waitpid( sPid, &status, 0 );
- if (WIFEXITED(status))
+ pid_t retpid = ::waitpid( sPid, &status, 0 );
+ if (WIFEXITED(status)) {
switch (WEXITSTATUS(status)) {
case AuthOk:
greet->succeeded();
@@ -441,6 +441,11 @@ void PasswordDlg::reapVerify()
case AuthAbort:
return;
}
+ }
+ else if (WIFSIGNALED(status)) {
+ // FIXME
+ // ERROR
+ }
cantCheck();
}