summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socketengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index ceb1090f1..b7676e2c2 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -65,7 +65,10 @@ char SocketEngine::GetType(int fd)
bool SocketEngine::AddFd(int fd, bool readable, char type)
{
if ((fd < 0) || (fd > MAX_DESCRIPTORS))
+ {
+ log(DEFAULT,"ERROR: FD of %d added above max of %d",fd,MAX_DESCRIPTORS);
return false;
+ }
if (GetRemainingFds() <= 1)
{
log(DEFAULT,"ERROR: System out of file descriptors!");