diff options
Diffstat (limited to 'firmware/target/hosted/fiio')
-rw-r--r-- | firmware/target/hosted/fiio/button-fiio.c | 2 | ||||
-rw-r--r-- | firmware/target/hosted/fiio/system-fiio.c | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/firmware/target/hosted/fiio/system-fiio.c b/firmware/target/hosted/fiio/system-fiio.c index 5e638989a1..f011ceea75 100644 --- a/firmware/target/hosted/fiio/system-fiio.c +++ b/firmware/target/hosted/fiio/system-fiio.c @@ -94,7 +94,7 @@ void power_off(void) { backlight_hw_off(); - axp_hw = open("/dev/axp173", O_RDWR); + axp_hw = open("/dev/axp173", O_RDWR | O_CLOEXEC); if(axp_hw < 0) panicf("Cannot open '/dev/axp173'"); |