summaryrefslogtreecommitdiff
path: root/ace/Module.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-05-24 00:38:48 +0000
committerSteve Huston <shuston@riverace.com>2002-05-24 00:38:48 +0000
commita86a0bf2a3713cfa17fececcbbf901d604450bf8 (patch)
tree657918051a754b297b04b3c5fa86e2f23b8d1ca3 /ace/Module.cpp
parent0d9148f6ca9728920ae5f6959d65016538bdac57 (diff)
downloadATCD-a86a0bf2a3713cfa17fececcbbf901d604450bf8.tar.gz
ChangeLogTag:Thu May 23 20:35:22 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Module.cpp')
-rw-r--r--ace/Module.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ace/Module.cpp b/ace/Module.cpp
index 51b4540b83e..2272dc2eed9 100644
--- a/ace/Module.cpp
+++ b/ace/Module.cpp
@@ -202,12 +202,15 @@ ACE_Module<ACE_SYNCH_USE>::close (int flags /* = M_DELETE_NONE */)
int result = 0;
- ACE_SET_BITS (flags_, flags);
+ // Only pay attention to the flags parameter if we haven't already
+ // set the task delete policies.
+ if (this->flags_ == 0)
+ ACE_SET_BITS (flags_, flags);
- if (this->close_i (0, flags) == -1)
+ if (this->close_i (0, flags_) == -1)
result = -1;
- if (this->close_i (1, flags) == -1)
+ if (this->close_i (1, flags_) == -1)
result = -1;
return result;