diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-21 16:37:48 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-21 16:37:48 -0700 |
commit | ba0012c36705dcf847865759af69bba783afb69d (patch) | |
tree | 37c095696e48cbec00c02c076295c3e8fde14650 /daemon.c | |
parent | 583b7ea31b7c16f872b178d541591ab816d16f85 (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |