log: /dev/null doesn't exist on win32.
This commit is contained in:
@@ -272,8 +272,10 @@ void setup_log_output(bool use_stdout)
|
|||||||
{
|
{
|
||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
if (!use_stdout) {
|
if (!use_stdout) {
|
||||||
|
#ifndef WIN32
|
||||||
if (out_filename == NULL)
|
if (out_filename == NULL)
|
||||||
out_fd = open("/dev/null", O_WRONLY);
|
out_fd = open("/dev/null", O_WRONLY);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (out_fd >= 0) {
|
if (out_fd >= 0) {
|
||||||
redirect_logs(out_fd);
|
redirect_logs(out_fd);
|
||||||
|
Reference in New Issue
Block a user