(__pthread_manager): Reduce first argument to select to include just
authordrepper <drepper>
Wed, 18 Mar 1998 13:36:41 +0000 (13:36 +0000)
committerdrepper <drepper>
Wed, 18 Mar 1998 13:36:41 +0000 (13:36 +0000)
the needed file descriptor.

linuxthreads/manager.c

index 7fe4d46..8844dec 100644 (file)
@@ -99,7 +99,7 @@ int __pthread_manager(void *arg)
     FD_SET(reqfd, &readfds);
     timeout.tv_sec = 2;
     timeout.tv_usec = 0;
-    n = __select(FD_SETSIZE, &readfds, NULL, NULL, &timeout);
+    n = __select(reqfd + 1, &readfds, NULL, NULL, &timeout);
 
     /* Check for termination of the main thread */
     if (getppid() == 1) {