mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
serverLog: call setvbuf unconditionally
The setvbuf() function is part of C89, and we require C89 support from our platforms. Remove the configure check and the corresponding conditional logic. (As it happens, we were calling setvbuf() without the conditional elsewhere anyway, via the setlinebuf() macros, so we should not see any additional breakage from this change.) Change-Id: Iff850bfbafdb9a17f50410d309d9d9e9be3fa951 Reviewed-on: https://gerrit.openafs.org/15841 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
This commit is contained in:
parent
add810c1db
commit
4f7d192bcb
@ -26,7 +26,6 @@ AC_CHECK_FUNCS([ \
|
|||||||
regerror \
|
regerror \
|
||||||
regexec \
|
regexec \
|
||||||
setitimer \
|
setitimer \
|
||||||
setvbuf \
|
|
||||||
sigaction \
|
sigaction \
|
||||||
strcasestr \
|
strcasestr \
|
||||||
strerror \
|
strerror \
|
||||||
|
@ -527,11 +527,7 @@ RedirectStdStreams(const char *fileName)
|
|||||||
/* don't care */
|
/* don't care */
|
||||||
}
|
}
|
||||||
if (freopen(fileName, "a", stderr) != NULL) {
|
if (freopen(fileName, "a", stderr) != NULL) {
|
||||||
#ifdef HAVE_SETVBUF
|
|
||||||
setvbuf(stderr, NULL, _IONBF, 0);
|
setvbuf(stderr, NULL, _IONBF, 0);
|
||||||
#else
|
|
||||||
setbuf(stderr, NULL);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user