daemon: get remote host address from root-process
commitf9c87be6b42dd0f8b31a4bb8c6a44326879fdd1a
authorErik Faye-Lund <kusmabite@gmail.com>
Thu, 4 Nov 2010 01:35:19 +0000 (4 02:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Nov 2010 23:53:51 +0000 (4 16:53 -0700)
treef73b2dec3c487175d1084ee9aed1a7c6e3817230
parentcbefd2d6322bff0033fd50bfe175c52b79933571
daemon: get remote host address from root-process

Get remote host in the process that accept() and pass it through
the REMOTE_ADDR environment variable to the handler-process.
Introduce the REMOTE_PORT environmen variable for the port.

Use these variables for reporting instead of doing
getpeername(0, ...), which doesn't work on Windows.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c