diff --git a/wireless/bluetooth/bt_conn.c b/wireless/bluetooth/bt_conn.c index ec1669490d..fbb1a0dc61 100644 --- a/wireless/bluetooth/bt_conn.c +++ b/wireless/bluetooth/bt_conn.c @@ -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); diff --git a/wireless/bluetooth/bt_hcicore.c b/wireless/bluetooth/bt_hcicore.c index 9b8595787d..1d95f0ea1b 100644 --- a/wireless/bluetooth/bt_hcicore.c +++ b/wireless/bluetooth/bt_hcicore.c @@ -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);