enable O_CLOEXEC explicit

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26
2023-09-13 21:08:13 +08:00
committed by Xiang Xiao
parent 2d817deecb
commit e930476b4b
25 changed files with 41 additions and 35 deletions
+1 -1
View File
@@ -870,7 +870,7 @@ static int rptun_store_open(FAR void *store_,
int len = 0x100;
int ret;
ret = file_open(&store->file, path, O_RDONLY);
ret = file_open(&store->file, path, O_RDONLY | O_CLOEXEC);
if (ret < 0)
{
return ret;