From b32d20cfdabab1ae8deec25b608fb23056b38f8d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 13 Jan 2010 00:32:40 +0000 Subject: thread: remove except fd set The fd_set exceptfd is never used by any Quagga thread. According to documentation it is only meaningful for out of band data, and no routing protocol uses out of band data. It saves some small amount of kernel overhead to not use it. --- lib/thread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/thread.c') diff --git a/lib/thread.c b/lib/thread.c index e89af541..3880e8af 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -910,7 +910,6 @@ thread_fetch (struct thread_master *m, struct thread *fetch) struct thread *thread; fd_set readfd; fd_set writefd; - fd_set exceptfd; struct timeval timer_val; struct timeval timer_val_bg; struct timeval *timer_wait; @@ -936,7 +935,6 @@ thread_fetch (struct thread_master *m, struct thread *fetch) /* Structure copy. */ readfd = m->readfd; writefd = m->writefd; - exceptfd = m->exceptfd; /* Calculate select wait timer if nothing else to do */ quagga_get_relative (NULL); @@ -947,7 +945,7 @@ thread_fetch (struct thread_master *m, struct thread *fetch) (!timer_wait || (timeval_cmp (*timer_wait, *timer_wait_bg) > 0))) timer_wait = timer_wait_bg; - num = select (FD_SETSIZE, &readfd, &writefd, &exceptfd, timer_wait); + num = select (FD_SETSIZE, &readfd, &writefd, NULL, timer_wait); /* Signals should get quick treatment */ if (num < 0) -- cgit v1.2.3