summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-09-09 13:44:36 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-09-09 13:44:36 +0000
commit352aa7a07aac39bba8323648212a023655952cae (patch)
treef4e8ff3dc38b5afa75cdc7a60c24c92b20a1017e
parenta2216dff30eb29d6efc97302f0feabe32aeb7a5b (diff)
downloadATCD-352aa7a07aac39bba8323648212a023655952cae.tar.gz
ChangeLogTag: Sun Sep 9 08:43:02 2001 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLogs/ChangeLog-02a6
-rw-r--r--ChangeLogs/ChangeLog-03a6
-rw-r--r--ace/Handle_Set.i6
4 files changed, 22 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 92f4d84f33f..03ea7c2a86b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Sep 9 08:43:02 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Handle_Set.i: Added a check in set_bit () and clr_bit () for
+ ACE_INVALID_HANDLE. If we pass a ACE_INVALID_HANDLE we were
+ crashing which is not good and hence the fix.
+
Sun Sep 9 08:28:52 2001 Balachandran Natarajan <bala@cs.wustl.edu>
* ace/Reactor_Impl.h:
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 92f4d84f33f..03ea7c2a86b 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,9 @@
+Sun Sep 9 08:43:02 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Handle_Set.i: Added a check in set_bit () and clr_bit () for
+ ACE_INVALID_HANDLE. If we pass a ACE_INVALID_HANDLE we were
+ crashing which is not good and hence the fix.
+
Sun Sep 9 08:28:52 2001 Balachandran Natarajan <bala@cs.wustl.edu>
* ace/Reactor_Impl.h:
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 92f4d84f33f..03ea7c2a86b 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,9 @@
+Sun Sep 9 08:43:02 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Handle_Set.i: Added a check in set_bit () and clr_bit () for
+ ACE_INVALID_HANDLE. If we pass a ACE_INVALID_HANDLE we were
+ crashing which is not good and hence the fix.
+
Sun Sep 9 08:28:52 2001 Balachandran Natarajan <bala@cs.wustl.edu>
* ace/Reactor_Impl.h:
diff --git a/ace/Handle_Set.i b/ace/Handle_Set.i
index ac7e837c2d9..ce845d95279 100644
--- a/ace/Handle_Set.i
+++ b/ace/Handle_Set.i
@@ -84,7 +84,8 @@ ACE_INLINE void
ACE_Handle_Set::set_bit (ACE_HANDLE handle)
{
ACE_TRACE ("ACE_Handle_Set::set_bit");
- if (!this->is_set (handle))
+ if ((handle != ACE_INVALID_HANDLE)
+ && (!this->is_set (handle)))
{
#if defined (ACE_WIN32)
FD_SET ((SOCKET) handle,
@@ -116,7 +117,8 @@ ACE_Handle_Set::clr_bit (ACE_HANDLE handle)
{
ACE_TRACE ("ACE_Handle_Set::clr_bit");
- if (this->is_set (handle))
+ if ((handle != ACE_INVALID_HANDLE) &&
+ (this->is_set (handle)))
{
FD_CLR ((ACE_SOCKET) handle,
&this->mask_);