Restore standard behavior: log to console only when normal logging
failed, not always. PR: bin/75356 Submitted by: Mark Knight <markk knigma org> Pointy hat to: glebius MFC after: 3 days
This commit is contained in:
parent
77bb8ca4a3
commit
8ba85e7741
|
@ -273,11 +273,12 @@ vsyslog(pri, fmt, ap)
|
|||
do {
|
||||
usleep(1);
|
||||
if (send(LogFile, tbuf, cnt, 0) >= 0)
|
||||
break;
|
||||
return;
|
||||
if (status == CONNPRIV)
|
||||
break;
|
||||
} while (errno == ENOBUFS);
|
||||
}
|
||||
} else
|
||||
return;
|
||||
|
||||
/*
|
||||
* Output the message to the console; try not to block
|
||||
|
|
Loading…
Reference in New Issue