summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-10 23:05:08 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-10 23:05:32 +0100
commit95056b27a05c527f4724b6c52abb2a7a69a3a5d0 (patch)
treeb9e4eb086105b41d8fbd8448d92f5675a1589bfc
parent46b0925d4febce47d2d3b4cf83518c330730c3f6 (diff)
button: don't exit if we cannot handle a button press
-rw-r--r--src/login/logind-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-button.c b/src/login/logind-button.c
index 7ea4e4f6ad..3dd0829486 100644
--- a/src/login/logind-button.c
+++ b/src/login/logind-button.c
@@ -113,7 +113,7 @@ static int button_handle(
* execute another one until the lid is opened/closed again */
b->lid_close_queued = false;
- return r;
+ return 0;
}
static int button_dispatch(sd_event_source *s, int fd, uint32_t revents, void *userdata) {