anchao opened a new pull request #3099: URL: https://github.com/apache/incubator-nuttx/pull/3099
## Summary net/tcp/dup: do not start the tcp monitor if unestablished Add more sanity checks to avoid TCP moniter start fail if the TCP handle unestablished, the dup(2) operation should work at any time Signed-off-by: chao.an <[email protected]> ## Impact 1. fd duplicate for child task 2. socket O_CLOEXEC ## Testing ``` static int nsh_waiter(int argc, char *argv[]) { while (1) sleep(100); } int main(int argc, FAR char *argv[]) { int fd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); int pid = task_create("fork task", 100, 40960, (main_t)nsh_waiter, (FAR char * const *)NULL); while (1) sleep(100); return 0; } ``` "fork task" should be create and runing as expected -- 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. For queries about this service, please contact Infrastructure at: [email protected]
