wireless: enable O_CLOEXEC explicit
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
parent
cbf76e96c7
commit
c3ccc30f83
|
@ -559,7 +559,7 @@ void bt_conn_set_state(FAR struct bt_conn_s *conn,
|
||||||
{
|
{
|
||||||
int ret;
|
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,
|
CONFIG_BLUETOOTH_TXCONN_NMSGS,
|
||||||
&conn->tx_queue);
|
&conn->tx_queue);
|
||||||
DEBUGASSERT(ret >= 0);
|
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.
|
* 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);
|
CONFIG_BLUETOOTH_TXCMD_NMSGS, &g_btdev.tx_queue);
|
||||||
DEBUGASSERT(ret >= 0);
|
DEBUGASSERT(ret >= 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue