diff options
author | kobica <kobica@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-01-22 19:21:45 +0000 |
---|---|---|
committer | kobica <kobica@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-01-22 19:21:45 +0000 |
commit | 2e0c262596bbc80570d7a9f4f2ec773d71958e2d (patch) | |
tree | 431e0f3d7ff06ca07c9a106fdad49344be96e646 | |
parent | 09115d9aca02a97f9993a25806a5e6a419b94beb (diff) | |
download | ATCD-2e0c262596bbc80570d7a9f4f2ec773d71958e2d.tar.gz |
ChangeLogTag: Sat Jan 22 21:18:58 2005 Kobi Cohen-Arazi <kobi.cohenarazi@gmail.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | ace/Logging_Strategy.cpp | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index d79074d2433..59c549be3ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jan 22 21:18:58 2005 Kobi Cohen-Arazi <kobi.cohenarazi@gmail.com> + + * ace/Logging_Strategy.cpp (handle_timeout): Fixed when defined ACE_LACKS_IOSTREAM_TOTALLY. + Use ftell instead of fseek in order to get the current file length. + Thanks to Kim ByeongSu <kcando at kcando dot org> for pointing it out. + Sat Jan 22 21:13:11 2005 Kobi Cohen-Arazi <kobi.cohenarazi@gmail.com> * tests/Test_Output.cpp(close): Fixed when ACE_LACKS_IOSTREAM_TOTALLY - fflush and fclose @@ -1947,6 +1947,7 @@ Mike McGahan <mcgahan at sparta dot com> David Michael <damicha at sandia dot gov> Steve D. Baker <Steven_D_Baker at raytheon dot com> Martina Yen <martina_h_yen at raytheon dot com> +Kim ByeongSu <kcando at kcando dot org> I would particularly like to thank Paul Stephenson, who worked with me at Ericsson in the early 1990's. Paul devised the recursive Makefile diff --git a/ace/Logging_Strategy.cpp b/ace/Logging_Strategy.cpp index 75d6011162b..fe6d4c5fc8c 100644 --- a/ace/Logging_Strategy.cpp +++ b/ace/Logging_Strategy.cpp @@ -382,9 +382,7 @@ ACE_Logging_Strategy::handle_timeout (const ACE_Time_Value &, const void *) { #if defined (ACE_LACKS_IOSTREAM_TOTALLY) - if ((size_t) ACE_OS::fseek (this->log_msg_->msg_ostream (), - 0, - SEEK_CUR) > this->max_size_) + if ((size_t) ACE_OS::ftell (this->log_msg_->msg_ostream ()) > this->max_size_) #else if ((size_t) this->log_msg_->msg_ostream ()->tellp () > this->max_size_) #endif /* ACE_LACKS_IOSTREAM_TOTALLY */ |