diff options
Diffstat (limited to 'firmware/target/hosted/fiio/button-fiio.c')
-rw-r--r-- | firmware/target/hosted/fiio/button-fiio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/fiio/button-fiio.c b/firmware/target/hosted/fiio/button-fiio.c index fcc7480e11..79ed702668 100644 --- a/firmware/target/hosted/fiio/button-fiio.c +++ b/firmware/target/hosted/fiio/button-fiio.c @@ -226,7 +226,7 @@ void button_init_device(void) for(int i = 0; i < NR_POLL_DESC; i++) { - int fd = open(input_devs[i], O_RDWR); + int fd = open(input_devs[i], O_RDWR | O_CLOEXEC); if(fd < 0) { |