mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
login: fixup button_open() fd
This commit is contained in:
parent
94b0b1566a
commit
12e982425c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user