summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-30 17:56:12 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-30 17:56:12 +0000
commit56778d40d5817d9d326d16727767e144c773d957 (patch)
tree384559143ba71dd71b629f64ff5c04612869135f
parentae74e9316dc248c9280f7726813fb18957ef3798 (diff)
downloadATCD-56778d40d5817d9d326d16727767e144c773d957.tar.gz
ChangeLogTag:Mon Aug 30 12:53:48 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
-rw-r--r--ChangeLog-99b5
-rw-r--r--examples/Misc/test_trace.cpp10
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b
index 5f009a19c92..3b4e88bc367 100644
--- a/ChangeLog-99b
+++ b/ChangeLog-99b
@@ -1,3 +1,8 @@
+Mon Aug 30 12:53:48 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * examples/Misc/test_trace.cpp (main): Added a call to
+ ACE_OS::atexit() to make sure we test this someplace.
+
Mon Aug 30 12:11:06 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
* ace/Strategies.i:
diff --git a/examples/Misc/test_trace.cpp b/examples/Misc/test_trace.cpp
index 1819d60d312..b4b3a985888 100644
--- a/examples/Misc/test_trace.cpp
+++ b/examples/Misc/test_trace.cpp
@@ -57,11 +57,21 @@ private:
// Depth of the recursion.
};
+extern "C"
+void
+exithook (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "we're outta here!\n"));
+}
+
int
main (int argc, char *argv[])
{
const size_t MAX_DEPTH = argc == 1 ? 10 : atoi (argv[1]);
+ ACE_OS::atexit (exithook);
+
if (argc > 2)
ACE_Trace::set_nesting_indent (ACE_OS::atoi (argv[2]));