diff options
author | Steve Huston <shuston@riverace.com> | 1999-07-09 20:41:24 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1999-07-09 20:41:24 +0000 |
commit | ec0b8ca68ac5008f08792efd180645760cf92559 (patch) | |
tree | 7c6575be904ac6239f8a79bef9764c9b107a79e3 /ace | |
parent | 2bce217cbb3aafecbc5213f6a00ef8af81905148 (diff) | |
download | ATCD-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.
Diffstat (limited to 'ace')
-rw-r--r-- | ace/WFMO_Reactor.cpp | 5 |
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; } |