Added sys log entry for "max smbd processes" when is reached.
authorJohn Reilly <jreilly@samba.org>
Thu, 20 Mar 2003 00:34:30 +0000 (00:34 +0000)
committerJohn Reilly <jreilly@samba.org>
Thu, 20 Mar 2003 00:34:30 +0000 (00:34 +0000)
JohnR (CR1873)

source/smbd/server.c

index 9620b5ab37fb165bb7a1d20a09872e1df5452452..5ed4a5fddcfd5538ae0f9027ff96c8b9e37151e5 100644 (file)
@@ -140,6 +140,10 @@ BOOL allowable_number_of_smbd_processes(void)
                if (val > max_processes) {
                        DEBUG(0,("allowable_number_of_smbd_processes: number of processes (%d) is over allowed limit (%d)\n",
                                val, max_processes ));
+                       /* BEGIN_ADMIN_LOG */
+                       sys_adminlog( LOG_ERR, (char*)gettext( "Client connection disallowed due to limit. max smbd processes: %u"), 
+        max_processes );
+                       /* END_ADMIN_LOG */
                        return False;
                }
        }