Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
daemon: send stderr to /dev/null instead of closing.
author
Junio C Hamano
<junkio@cox.net>
Wed, 21 Jun 2006 23:37:48 +0000
(16:37 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 21 Jun 2006 23:37:48 +0000
(16:37 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
583b7ea
)
diff --git
a/daemon.c
b/daemon.c
index bdfe80d2e4f4fc13ad45bd35aeeeb3ec71422a4f..0747ce2a37ac90cd89044ab9e5aac688f0e1a269 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-757,7
+757,7
@@
int main(int argc, char **argv)
struct sockaddr *peer = (struct sockaddr *)&ss;
socklen_t slen = sizeof(ss);
- f
close(stderr); //FIXME: workaround
+ f
reopen("/dev/null", "w", stderr);
if (getpeername(0, peer, &slen))
peer = NULL;