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