summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobica <kobica@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-01-22 19:21:45 +0000
committerkobica <kobica@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-01-22 19:21:45 +0000
commit2170bce9776a54ca41b8200a957fdb8519df0e46 (patch)
tree431e0f3d7ff06ca07c9a106fdad49344be96e646
parent5de5a0d50fdeaff1677e23492d57cc2447b18eee (diff)
downloadATCD-2170bce9776a54ca41b8200a957fdb8519df0e46.tar.gz
ChangeLogTag: Sat Jan 22 21:18:58 2005 Kobi Cohen-Arazi <kobi.cohenarazi@gmail.com>
-rw-r--r--ChangeLog6
-rw-r--r--THANKS1
-rw-r--r--ace/Logging_Strategy.cpp4
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
diff --git a/THANKS b/THANKS
index 46d6886553a..191630c6311 100644
--- a/THANKS
+++ b/THANKS
@@ -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 */