summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-21 23:37:48 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-21 23:37:48 (GMT)
commitba0012c36705dcf847865759af69bba783afb69d (patch)
tree37c095696e48cbec00c02c076295c3e8fde14650 /daemon.c
parent583b7ea31b7c16f872b178d541591ab816d16f85 (diff)
downloadgit-ba0012c36705dcf847865759af69bba783afb69d.zip
git-ba0012c36705dcf847865759af69bba783afb69d.tar.gz
git-ba0012c36705dcf847865759af69bba783afb69d.tar.bz2
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 bdfe80d..0747ce2 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;