Skip to content

Commit

Permalink
Merge branch 'jc/upload-corrupt' into next
Browse files Browse the repository at this point in the history
* jc/upload-corrupt:
  daemon: send stderr to /dev/null instead of closing.
  • Loading branch information
Junio C Hamano committed Jun 21, 2006
2 parents 811476d + ba0012c commit 78831b4
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 @@ -762,7 +762,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 78831b4

Please sign in to comment.