about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-08-09 06:16:47 +0000
committerUlrich Drepper <drepper@redhat.com>2005-08-09 06:16:47 +0000
commit908c9e87c3b639c8d1660a5c1a22c962634c6332 (patch)
tree49cd47da95f2ccfe54e42160d54b3e36a6680a8f
parent4630012fef63ef975bc6b30edbb9e7de95235dba (diff)
downloadglibc-908c9e87c3b639c8d1660a5c1a22c962634c6332.tar.gz
glibc-908c9e87c3b639c8d1660a5c1a22c962634c6332.tar.xz
glibc-908c9e87c3b639c8d1660a5c1a22c962634c6332.zip
* nscd/connections.c (main_loop_epoll): Pass NULL as event
	argument for epoll_ctl(EPOLL_CTL_DEL) calls.
-rw-r--r--ChangeLog3
-rw-r--r--nscd/connections.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 35d1b17cea..51c2036bb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
 
+	* nscd/connections.c (main_loop_epoll): Pass NULL as event
+	argument for epoll_ctl(EPOLL_CTL_DEL) calls.
+
 	* nscd/nscd_stat.c (receive_print_stats): Really print values of
 	thread number, paranoia, and restart interval the server is using.
 
diff --git a/nscd/connections.c b/nscd/connections.c
index 7ead3fd5e7..14e490b0ea 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1459,7 +1459,7 @@ fd_ready (int fd)
 	{
 	  /* We got another thread.  */
 	  ++nthreads;
-	  /* The new thread might new a kick.  */
+	  /* The new thread might need a kick.  */
 	  do_signal = true;
 	}
 
@@ -1644,8 +1644,7 @@ main_loop_epoll (int efd)
 	else
 	  {
 	    /* Remove the descriptor from the epoll descriptor.  */
-	    struct epoll_event ev = { 0, };
-	    (void) epoll_ctl (efd, EPOLL_CTL_DEL, revs[cnt].data.fd, &ev);
+	    (void) epoll_ctl (efd, EPOLL_CTL_DEL, revs[cnt].data.fd, NULL);
 
 	    /* Get a worked to handle the request.  */
 	    fd_ready (revs[cnt].data.fd);
@@ -1667,8 +1666,7 @@ main_loop_epoll (int efd)
 	if (cnt != sock && starttime[cnt] != 0 && starttime[cnt] < laststart)
 	  {
 	    /* We are waiting for this one for too long.  Close it.  */
-	    struct epoll_event ev = {0, };
-	    (void) epoll_ctl (efd, EPOLL_CTL_DEL, cnt, &ev);
+	    (void) epoll_ctl (efd, EPOLL_CTL_DEL, cnt, NULL);
 
 	    (void) close (cnt);