提交 ba0012c3 编写于 作者: J Junio C Hamano

daemon: send stderr to /dev/null instead of closing.

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 583b7ea3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册