summaryrefslogtreecommitdiff
path: root/lib/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event.c')
-rw-r--r--lib/event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/event.c b/lib/event.c
index f4aa7c58b9..d925d0d5f0 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -555,8 +555,9 @@ struct event_loop *event_master_create(const char *name)
}
if (rv->fd_limit > STUPIDLY_LARGE_FD_SIZE) {
- zlog_warn("FD Limit set: %u is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to %u",
- rv->fd_limit, STUPIDLY_LARGE_FD_SIZE);
+ if (frr_is_daemon())
+ zlog_warn("FD Limit set: %u is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to %u",
+ rv->fd_limit, STUPIDLY_LARGE_FD_SIZE);
rv->fd_limit = STUPIDLY_LARGE_FD_SIZE;
}