Message ID | 20230310092932.51756-1-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | [libgpiod] core: make the chip file descriptor blocking | expand |
diff --git a/lib/chip.c b/lib/chip.c index 507c79d..7d4d21e 100644 --- a/lib/chip.c +++ b/lib/chip.c @@ -30,7 +30,7 @@ GPIOD_API struct gpiod_chip *gpiod_chip_open(const char *path) if (!gpiod_check_gpiochip_device(path, true)) return NULL; - fd = open(path, O_RDWR | O_CLOEXEC | O_NONBLOCK); + fd = open(path, O_RDWR | O_CLOEXEC); if (fd < 0) return NULL;