avoid calling new/malloc in signalhandler.
FlushLogFilesUnsafe would be called in FailureSignalHandler, so should avoid calling new/malloc, which are not signal safe. fixes #78
This commit is contained in:
parent
de75983a81
commit
0312301143
@ -572,7 +572,7 @@ inline void LogDestination::FlushLogFilesUnsafe(int min_severity) {
|
||||
// assume we have the log_mutex or we simply don't care
|
||||
// about it
|
||||
for (int i = min_severity; i < NUM_SEVERITIES; i++) {
|
||||
LogDestination* log = log_destination(i);
|
||||
LogDestination* log = log_destinations_[i];
|
||||
if (log != NULL) {
|
||||
// Flush the base fileobject_ logger directly instead of going
|
||||
// through any wrappers to reduce chance of deadlock.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user