summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/agptek/button-agptek.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/agptek/button-agptek.c')
-rw-r--r--firmware/target/hosted/agptek/button-agptek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/agptek/button-agptek.c b/firmware/target/hosted/agptek/button-agptek.c
index 2d2deda6f6..83953e0dab 100644
--- a/firmware/target/hosted/agptek/button-agptek.c
+++ b/firmware/target/hosted/agptek/button-agptek.c
@@ -77,7 +77,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)
{