summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-04-11 17:41:49 -0700
committerJeremy Allison <jra@samba.org>2008-04-11 17:41:49 -0700
commitf85c4b6905235d5e11ebeadd3e8216e4ae8cc31c (patch)
treebb6e417aa16c328eb75d43659af02da6fa6d375f /source3/nmbd
parent05c15785d75320749b673a98023b8386b20f23fe (diff)
downloadsamba-f85c4b6905235d5e11ebeadd3e8216e4ae8cc31c.tar.gz
samba-f85c4b6905235d5e11ebeadd3e8216e4ae8cc31c.tar.bz2
samba-f85c4b6905235d5e11ebeadd3e8216e4ae8cc31c.zip
Fix bug #5386, don't keep printing the same waiting
error message. Jeremy. (This used to be commit 12e6818df1c77810a59a2896f8c44c91fc24e7ae)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 9797a7adb6..0349445317 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -170,6 +170,7 @@ static void reload_interfaces(time_t t)
{
static time_t lastt;
int n;
+ bool print_waiting_msg = true;
struct subnet_record *subrec;
if (t && ((t - lastt) < NMBD_INTERFACES_RELOAD)) {
@@ -188,7 +189,6 @@ static void reload_interfaces(time_t t)
some subnets */
load_interfaces();
-
/* find any interfaces that need adding */
for (n=iface_count() - 1; n >= 0; n--) {
char str[INET6_ADDRSTRLEN];
@@ -280,8 +280,11 @@ static void reload_interfaces(time_t t)
/* We need to wait if there are no subnets... */
if (FIRST_SUBNET == NULL) {
- DEBUG(0,("reload_interfaces: "
- "No subnets to listen to. Waiting..\n"));
+ if (print_waiting_msg) {
+ DEBUG(0,("reload_interfaces: "
+ "No subnets to listen to. Waiting..\n"));
+ print_waiting_msg = false;
+ }
/*
* Whilst we're waiting for an interface, allow SIGTERM to