From: Lennart Poettering Date: Sun, 10 Nov 2013 22:05:08 +0000 (+0100) Subject: button: don't exit if we cannot handle a button press X-Git-Tag: v209~1482 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=95056b27a05c527f4724b6c52abb2a7a69a3a5d0 button: don't exit if we cannot handle a button press --- diff --git a/src/login/logind-button.c b/src/login/logind-button.c index 7ea4e4f6a..3dd082948 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) {