From 52cda95831cdc685d74b99334a06fb1f69996dc4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Mar 1998 13:36:59 +0000 Subject: Update. 1998-03-16 Andreas Schwab * manager.c (__pthread_manager): Reduce first argument to select to include just the needed file descriptor. --- linuxthreads/ChangeLog | 5 +++++ linuxthreads/manager.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'linuxthreads') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 63a3b7c758..7913e085f1 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1998-03-16 Andreas Schwab + + * manager.c (__pthread_manager): Reduce first argument to select + to include just the needed file descriptor. + 1998-03-17 00:06 Ulrich Drepper * manager.c: Fix last patch which caused core dumps. diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index 7fe4d468f6..8844decab7 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -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) { -- cgit v1.2.3