projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c93294
)
If log isn't stdout, ALWAYS set stdout to /dev/null
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 4 Apr 2014 14:17:11 +0000
(10:17 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 4 Apr 2014 14:17:11 +0000
(10:17 -0400)
src/main/radiusd.c
patch
|
blob
|
history
diff --git
a/src/main/radiusd.c
b/src/main/radiusd.c
index
8682e63
..
70e90c9
100644
(file)
--- a/
src/main/radiusd.c
+++ b/
src/main/radiusd.c
@@
-375,7
+375,7
@@
int main(int argc, char *argv[])
if (mainconfig.radlog_dest == RADLOG_STDOUT) {
setlinebuf(stdout);
mainconfig.radlog_fd = STDOUT_FILENO;
- } else
if (debug_flag)
{
+ } else {
dup2(devnull, STDOUT_FILENO);
}