summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 583b7ea)
raw | patch | inline | side by side (parent: 583b7ea)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Jun 2006 23:37:48 +0000 (16:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Jun 2006 23:37:48 +0000 (16:37 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c | patch | blob | history |
diff --git a/daemon.c b/daemon.c
index bdfe80d2e4f4fc13ad45bd35aeeeb3ec71422a4f..0747ce2a37ac90cd89044ab9e5aac688f0e1a269 100644 (file)
--- a/daemon.c
+++ b/daemon.c
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;