From c2696aaf51e9d0da2b28c201bdc4ecf32a02c9eb Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Wed, 19 May 2004 00:22:10 +0000 Subject: [PATCH] syncache broke rev 1.23 which was done to fix the "thundering herd" problem in Apache. Fix it. Reviewed by: peter --- sys/kern/uipc_sockbuf.c | 2 +- sys/kern/uipc_socket2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 750d50fc39e5..3ab8f3a0e7cd 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -223,7 +223,7 @@ sonewconn(head, connstatus) } if (connstatus) { sorwakeup(head); - wakeup(&head->so_timeo); + wakeup_one(&head->so_timeo); so->so_state |= connstatus; } return (so); diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 750d50fc39e5..3ab8f3a0e7cd 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -223,7 +223,7 @@ sonewconn(head, connstatus) } if (connstatus) { sorwakeup(head); - wakeup(&head->so_timeo); + wakeup_one(&head->so_timeo); so->so_state |= connstatus; } return (so);