summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/fiio/button-fiio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/fiio/button-fiio.c')
-rw-r--r--firmware/target/hosted/fiio/button-fiio.c2
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)
226 226
227 for(int i = 0; i < NR_POLL_DESC; i++) 227 for(int i = 0; i < NR_POLL_DESC; i++)
228 { 228 {
229 int fd = open(input_devs[i], O_RDWR); 229 int fd = open(input_devs[i], O_RDWR | O_CLOEXEC);
230 230
231 if(fd < 0) 231 if(fd < 0)
232 { 232 {