diff options
author | Steve Huston <shuston@riverace.com> | 2000-07-11 18:25:05 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2000-07-11 18:25:05 +0000 |
commit | 2c2295430ae46695835cb6adea492eed8964d478 (patch) | |
tree | ccc04ba1ee815c01e4d77b4312c47c4f7c914b97 | |
parent | 91c406e9a42c85da7cae4e7a573acef8fda5f76a (diff) | |
download | ATCD-2c2295430ae46695835cb6adea492eed8964d478.tar.gz |
ChangeLogTag:Tue Jul 11 14:21:51 2000 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ace/Log_Msg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index a6b29688ff5..a1b51cc26db 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -754,6 +754,9 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str, if (this->log_priority_enabled (log_priority) == 0) return 0; + // Logging is a benign activity, so don't inadvertently smash errno. + ACE_Errno_Guard guard (errno); + ACE_Log_Record log_record (log_priority, ACE_OS::gettimeofday (), this->getpid ()); |