author | Jens Axboe <axboe@suse.de> | |
Thu, 20 Oct 2005 07:52:32 +0000 (00:52 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 21 Oct 2005 04:26:31 +0000 (21:26 -0700) | ||
commit | 7872e0556746c70e49c5558d271d35b1fbfb1680 | |
tree | 6602922af56bd2f9f85ba2030651f751e93ad20d | tree | snapshot |
parent | bfadbeddd1b54af8ab08a6c556c43c756ec85588 | commit | diff |
git-daemon poll() spinning out of control
With the '0' timeout given to poll, it returns instantly without any
events on my system, causing git-daemon to consume all the CPU time. Use
-1 as the timeout so poll() only returns in case of EINTR or actually
events being available.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
With the '0' timeout given to poll, it returns instantly without any
events on my system, causing git-daemon to consume all the CPU time. Use
-1 as the timeout so poll() only returns in case of EINTR or actually
events being available.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c | diff | blob | history |