From 12e982425cdc345730a86e2988b2db1c8b6d41ba Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 May 2019 02:10:23 +0300 Subject: [PATCH] login: fixup button_open() fd --- 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 ac94e832dc4..86c9121f270 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -341,7 +341,7 @@ int button_open(Button *b) { (void) button_set_mask(b->name, fd); b->io_event_source = sd_event_source_unref(b->io_event_source); - r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b); + r = sd_event_add_io(b->manager->event, &b->io_event_source, fd, EPOLLIN, button_dispatch, b); if (r < 0) return log_error_errno(r, "Failed to add button event for %s: %m", p); -- 2.39.5