commit 7855d094bbeb9b8ce43dd698ec82e400eb91e709 did this for accept() on INET socket, but missed UNIX one.
Signed-off-by: Jan Stancek <jstan...@redhat.com> --- testcases/kernel/syscalls/recvmsg/recvmsg01.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/recvmsg/recvmsg01.c b/testcases/kernel/syscalls/recvmsg/recvmsg01.c index 1216935..28626e3 100644 --- a/testcases/kernel/syscalls/recvmsg/recvmsg01.c +++ b/testcases/kernel/syscalls/recvmsg/recvmsg01.c @@ -480,8 +480,10 @@ void do_child(void) fromlen = sizeof(fsun); newfd = accept(ufd, (struct sockaddr *)&fsun, &fromlen); - if (newfd >= 0) + if (newfd >= 0) { FD_SET(newfd, &afds); + nfds = MAX(nfds, newfd + 1); + } } for (fd = 0; fd < nfds; ++fd) if (fd != sfd && fd != ufd && FD_ISSET(fd, &rfds)) { -- 1.7.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list