summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-21 16:37:48 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-21 16:37:48 -0700
commitba0012c36705dcf847865759af69bba783afb69d (patch)
tree37c095696e48cbec00c02c076295c3e8fde14650 /daemon.c
parent583b7ea31b7c16f872b178d541591ab816d16f85 (diff)
downloadgit-ba0012c36705dcf847865759af69bba783afb69d.tar.gz
daemon: send stderr to /dev/null instead of closing.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index bdfe80d2e4..0747ce2a37 100644
--- a/daemon.c
+++ b/daemon.c
@@ -757,7 +757,7 @@ int main(int argc, char **argv)
struct sockaddr *peer = (struct sockaddr *)&ss;
socklen_t slen = sizeof(ss);
- fclose(stderr); //FIXME: workaround
+ freopen("/dev/null", "w", stderr);
if (getpeername(0, peer, &slen))
peer = NULL;