tablet-pad-leds: Open led file with O_NONBLOCK | O_CLOEXEC
authorJonas Ådahl <jadahl@gmail.com>
Tue, 6 Apr 2021 14:33:42 +0000 (16:33 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 6 Apr 2021 14:33:42 +0000 (16:33 +0200)
commitf723b28220adc64552c4ce26c4c9054494ea0141
tree02c67ce76117fb230f7e955b2222a6cb35cf112b
parentc71a1f4347013cf94254c1ea421b3a313a125b35
tablet-pad-leds: Open led file with O_NONBLOCK | O_CLOEXEC

We don't want the file to be left open after any fork/exec, and we don't
want the read to be blocking; so open it as such.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/evdev-tablet-pad-leds.c