summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog-97b16
-rw-r--r--examples/Shared_Malloc/test_multiple_mallocs.cpp12
2 files changed, 21 insertions, 7 deletions
diff --git a/ChangeLog-97b b/ChangeLog-97b
index 153605d6044..34525616b1f 100644
--- a/ChangeLog-97b
+++ b/ChangeLog-97b
@@ -1,3 +1,14 @@
+Thu Nov 20 17:53:35 1997 Douglas C. Schmidt <schmidt@flamenco.cs.wustl.edu>
+
+ * examples/Shared_Malloc/test_multiple_mallocs.cpp (main): Make
+ sure make sure that the semaphores created by the program are
+ released as well as the storage files deleted. Thanks to Tom
+ Arbuckle <arbuckle@uran.informatik.uni-bonn.de> for reporting
+ this.
+
+ * ace: Added a new version of config-osf1-3.2.h. Thanks to Dani
+ Flexer <danif@ivory-sw.com> for updating this.
+
Thu Nov 20 18:22:24 1997 Steve Huston <shuston@riverace.com>
* ace/README
@@ -22,11 +33,6 @@ Thu Nov 20 18:22:24 1997 Steve Huston <shuston@riverace.com>
* examples/IPC_SAP/TLI_SAP/CPP-client.cpp: Changed 'char *host' to
'const char *host' so it can be initialized from a const char string.
-Thu Nov 20 17:53:35 1997 Douglas C. Schmidt <schmidt@flamenco.cs.wustl.edu>
-
- * ace: Added a new version of config-osf1-3.2.h. Thanks to Dani
- Flexer <danif@ivory-sw.com> for updating this.
-
Thu Nov 20 14:19:57 1997 Carlos O'Ryan <coryan@macarena.cs.wustl.edu>
* tests/Priority_Reactor_Test.h:
diff --git a/examples/Shared_Malloc/test_multiple_mallocs.cpp b/examples/Shared_Malloc/test_multiple_mallocs.cpp
index 91091c093b3..abfc5193135 100644
--- a/examples/Shared_Malloc/test_multiple_mallocs.cpp
+++ b/examples/Shared_Malloc/test_multiple_mallocs.cpp
@@ -37,7 +37,10 @@ main (int, char *[])
void *data = 0;
if (shmem_request->find ("foo", data) == 0)
- ACE_OS::printf ("%s\n", data);
+ {
+ ACE_OS::printf ("%s\n", data);
+ shmem_request->remove ();
+ }
else
{
data = shmem_request->malloc (ACE_OS::strlen (REQUEST_STRING) + 1);
@@ -47,7 +50,10 @@ main (int, char *[])
data = 0;
if (shmem_response->find ("foo", data) == 0)
- ACE_OS::printf ("%s\n", data);
+ {
+ ACE_OS::printf ("%s\n", data);
+ shmem_response->remove ();
+ }
else
{
data = shmem_response->malloc (ACE_OS::strlen (RESPONSE_STRING) + 1);
@@ -55,5 +61,7 @@ main (int, char *[])
shmem_response->bind ("foo", data);
}
+ ACE_OS::printf ("Run again to see results and release resources.\n");
+
return 0;
}