Unbuffered output was ideal from the viewpoint of getting the maximum
amount of output when the process was killed, but it causes a dozen or
more system calls per log entry. Line buffering should be a reasonable
compromise.
file_name, strerror(errno));
return;
}
- setvbuf(file, NULL, _IONBF, 0);
+ setvbuf(file, NULL, _IOLBF, 0);
VLOG_WARN("enabled memory leak logging to \"%s\"", file_name);
get_hooks(&libc_hooks);
set_hooks(&our_hooks);