From: Bartosz Golaszewski Date: Fri, 20 Oct 2017 09:15:26 +0000 (+0200) Subject: core: update line info after requesting the event handle X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6bb8bea5a9d6334f4007eb358c8159a49da7eed9;p=qemu-gpiodev%2Flibgpiod.git core: update line info after requesting the event handle Just as we do when requesting the regular line handle - update line info to reflect the changes after the event request. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/lib/core.c b/src/lib/core.c index 80e04bf..7e950d2 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -415,6 +415,7 @@ static int line_request_event_single(struct gpiod_line *line, line->state = LINE_REQUESTED_EVENTS; line->fd = req.fd; + line_maybe_update(line); return 0; }