hujun260 commented on PR #9497: URL: https://github.com/apache/nuttx/pull/9497#issuecomment-1600675756
> In fact, if I change all uses of `sd` in [this](https://github.com/fjpanag/code_for_nuttx/blob/main/mqtt_broker/mqtt_br_server.c#L150) loop with `fdcheck_protect(sd)` everything works as expected, and all tests pass. > > So, as it seems, it is not `select()` that has the problem. Rather it is `FD_ISSET()` which fails in [such](https://github.com/fjpanag/code_for_nuttx/blob/main/mqtt_broker/mqtt_br_server.c#L150) constructs. You are right, you can also refer to the modifications made to fs_select.c when I submitted this module, mainly in CONFIG_FDCHECK https://github.com/apache/nuttx/blob/master/fs/vfs/fs_select.c#LL105C20-L105C20 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
