summaryrefslogtreecommitdiff
path: root/ace/Token_Collection.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-09 01:21:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-09 01:21:18 +0000
commitbea7a8d718a916149d624666ab3eecd752da9a73 (patch)
tree07f03bdbc365b8db540783f8fe34aaf5d008aa87 /ace/Token_Collection.cpp
parent9a89445f60332dabd261da892d3247d47cd4cec6 (diff)
downloadATCD-bea7a8d718a916149d624666ab3eecd752da9a73.tar.gz
.
Diffstat (limited to 'ace/Token_Collection.cpp')
-rw-r--r--ace/Token_Collection.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/ace/Token_Collection.cpp b/ace/Token_Collection.cpp
index c1d4ab17e15..e275942ea22 100644
--- a/ace/Token_Collection.cpp
+++ b/ace/Token_Collection.cpp
@@ -88,13 +88,16 @@ ACE_Token_Collection::acquire (int notify,
iterator.advance ())
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("collection acquiring %s\n"),
+ ACE_DEBUG ((LM_DEBUG,
+ ASYS_TEXT ("collection acquiring %s\n"),
temp->int_id_->name ()));
- if (temp->int_id_->acquire (notify, sleep_hook, options) == -1)
+ if (temp->int_id_->acquire (notify,
+ sleep_hook,
+ options) == -1)
{
- int error = errno;
+ // Save/restore errno.
+ ACE_Errno_Guard error (errno);
this->release ();
- errno = error;
ACE_RETURN (-1);
}
}