naccyde / rpms / systemd

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