summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-11-21 01:19:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-11-21 01:19:18 +0000
commit98589c17f95464c0d6f8d424ec6d256952d5fde4 (patch)
tree7b936687c4ed1d5d842fcc5253732da0418d4611
parent07305088f803a1adac83f48407175c68c47abfdf (diff)
downloadATCD-98589c17f95464c0d6f8d424ec6d256952d5fde4.tar.gz
*** empty log message ***
-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;
}