9fc0f6
From 47be95beb25c23acbd7a47fa226a5523eb4a6e35 Mon Sep 17 00:00:00 2001
9fc0f6
From: Lennart Poettering <lennart@poettering.net>
9fc0f6
Date: Sun, 10 Nov 2013 23:05:08 +0100
9fc0f6
Subject: [PATCH] button: don't exit if we cannot handle a button press
9fc0f6
9fc0f6
---
9fc0f6
 src/login/logind-button.c | 2 +-
9fc0f6
 1 file changed, 1 insertion(+), 1 deletion(-)
9fc0f6
9fc0f6
diff --git a/src/login/logind-button.c b/src/login/logind-button.c
9fc0f6
index ea45c28..4f456d2 100644
9fc0f6
--- a/src/login/logind-button.c
9fc0f6
+++ b/src/login/logind-button.c
9fc0f6
@@ -172,7 +172,7 @@ static int button_handle(
9fc0f6
                  * execute another one until the lid is opened/closed again */
9fc0f6
                 b->lid_close_queued = false;
9fc0f6
 
9fc0f6
-        return r;
9fc0f6
+        return 0;
9fc0f6
 }
9fc0f6
 
9fc0f6
 int button_process(Button *b) {