aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <asavah@avh.od.ua>2019-05-23 02:10:23 +0300
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-05-23 11:16:11 +0900
commit12e982425cdc345730a86e2988b2db1c8b6d41ba (patch)
tree7b26fc51046a367f4331ee76c7032dc32bdac1dd
parentMerge pull request #12647 from cdown/dup (diff)
downloadsystemd-12e982425cdc345730a86e2988b2db1c8b6d41ba.tar.xz
systemd-12e982425cdc345730a86e2988b2db1c8b6d41ba.zip
login: fixup button_open() fd
-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 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);