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:
Gleb Smirnoff 2004-12-24 09:48:44 +00:00
parent 77bb8ca4a3
commit 8ba85e7741
1 changed files with 3 additions and 2 deletions

View File

@ -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