Skip to content

Commit

Permalink
daemon: send stderr to /dev/null instead of closing.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jun 21, 2006
1 parent 583b7ea commit ba0012c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba0012c

Please sign in to comment.