]> sourceware.org Git - systemtap.git/commitdiff
syscall recv*msg tests: use FD_SETSIZE for select(2) parameter 1
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 31 Mar 2014 20:33:41 +0000 (16:33 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 31 Mar 2014 20:34:15 +0000 (16:34 -0400)
testsuite/systemtap.syscall/recvmmsg.c
testsuite/systemtap.syscall/recvmsg.c

index 542a50642c881f6ee6e0fe9d07dce62841692bb8..9b47cc3fe1437f0aa10da8963b04fc6766a76d72 100644 (file)
@@ -51,7 +51,7 @@ void do_child()
     FD_SET(sfd, &afds);
     FD_SET(ufd, &afds);
 
-    nfds = getdtablesize();
+    nfds = FD_SETSIZE;
 
     /* accept connections until killed */
     while (1) {
index 7a9ad3712f0125fc16b0e720b1204f8091715a95..134f2f0b81a784c67ed2fa38db3571dca48510a5 100644 (file)
@@ -50,7 +50,7 @@ void do_child()
     FD_SET(sfd, &afds);
     FD_SET(ufd, &afds);
 
-    nfds = getdtablesize();
+    nfds = FD_SETSIZE;
 
     /* accept connections until killed */
     while (1) {
This page took 0.035011 seconds and 5 git commands to generate.