summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1999-07-09 20:41:24 +0000
committerSteve Huston <shuston@riverace.com>1999-07-09 20:41:24 +0000
commitec0b8ca68ac5008f08792efd180645760cf92559 (patch)
tree7c6575be904ac6239f8a79bef9764c9b107a79e3
parent2bce217cbb3aafecbc5213f6a00ef8af81905148 (diff)
downloadATCD-ec0b8ca68ac5008f08792efd180645760cf92559.tar.gz
If ACE_WFMO_Reactor_Handler_Repository::bind_i runs out of slots, set errno to
EMFILE, giving the caller some idea of what's wrong.
-rw-r--r--ace/WFMO_Reactor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ace/WFMO_Reactor.cpp b/ace/WFMO_Reactor.cpp
index 0eabbd3f1a7..6fea6727a00 100644
--- a/ace/WFMO_Reactor.cpp
+++ b/ace/WFMO_Reactor.cpp
@@ -600,7 +600,10 @@ ACE_WFMO_Reactor_Handler_Repository::bind_i (int io_entry,
this->wfmo_reactor_.wakeup_all_threads ();
}
else
- return -1;
+ {
+ errno = EMFILE; // File descriptor table is full (better than nothing)
+ return -1;
+ }
return 0;
}