wireless: enable O_CLOEXEC explicit

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2023-09-13 20:37:19 +08:00 committed by Xiang Xiao
parent cbf76e96c7
commit c3ccc30f83
2 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ void bt_conn_set_state(FAR struct bt_conn_s *conn,
{
int ret;
ret = bt_queue_open(BT_CONN_TX, O_RDWR | O_CREAT,
ret = bt_queue_open(BT_CONN_TX, O_RDWR | O_CREAT | O_CLOEXEC,
CONFIG_BLUETOOTH_TXCONN_NMSGS,
&conn->tx_queue);
DEBUGASSERT(ret >= 0);

View File

@ -1504,7 +1504,7 @@ static void cmd_queue_init(void)
* the Tx queue and received by logic on the Tx kernel thread.
*/
ret = bt_queue_open(BT_HCI_TX, O_RDWR | O_CREAT,
ret = bt_queue_open(BT_HCI_TX, O_RDWR | O_CREAT | O_CLOEXEC,
CONFIG_BLUETOOTH_TXCMD_NMSGS, &g_btdev.tx_queue);
DEBUGASSERT(ret >= 0);