mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
enable O_CLOEXEC explicit
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user