Browse Source

Merge branch 'jc/upload-corrupt' into next

* jc/upload-corrupt:
  daemon: send stderr to /dev/null instead of closing.
maint
Junio C Hamano 19 years ago
parent
commit
78831b40d6
  1. 2
      daemon.c

2
daemon.c

@ -762,7 +762,7 @@ int main(int argc, char **argv) @@ -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;

Loading…
Cancel
Save