systemd/0088-button-don-t-exit-if-we-cannot-handle-a-button-press.patch
Zbigniew Jędrzejewski-Szmek 930e1b89bd Backport fixes and hwdb changes
2013-11-19 17:42:18 -05:00

23 lines
728 B
Diff

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