git daemon: avoid waking up too often
commitf9bbefc701e319983bb8e13df8d615293c6f386a
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 22 Jul 2008 22:03:01 +0000 (22 23:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jul 2008 23:57:14 +0000 (23 16:57 -0700)
tree49257515ef3eac8c0caefb29a4c7c403f347e068
parent3b6aeb3cc37c8ef934850fb01e1de48e12cf3aac
git daemon: avoid waking up too often

To avoid waking up unnecessarily, a pipe is set up that is only ever
written to by child_handler(), when a child disconnects, as suggested
per Junio.

This avoids waking up the main process every second to see if a child
was disconnected.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c