chiark / gitweb /
button: don't exit if we cannot handle a button press
authorLennart Poettering <lennart@poettering.net>
Sun, 10 Nov 2013 22:05:08 +0000 (23:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 10 Nov 2013 22:05:32 +0000 (23:05 +0100)
src/login/logind-button.c

index 7ea4e4f..3dd0829 100644 (file)
@@ -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) {