teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0099-button-don-t-exit-if-we-cannot-handle-a-button-press.patch

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