From: Christian Brauner Date: Sun, 29 Oct 2017 16:26:13 +0000 (+0100) Subject: monitor: do not log useless warnings X-Git-Tag: lxc-3.0.0.beta1~201^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2469f9b65e46b559e51ebeb3d1f6107f5408cfcf;p=thirdparty%2Flxc.git monitor: do not log useless warnings lxc-monitord is deprecated so this is expected to fail. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index 166329a7c..a16238992 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -105,10 +105,10 @@ static void lxc_monitor_fifo_send(struct lxc_msg *msg, const char *lxcpath) /* It is normal for this open() to fail with ENXIO when there is * no monitor running, so we don't log it. */ - if (errno == ENXIO) + if (errno == ENXIO || errno == ENOENT) return; - WARN("Failed to open fifo to send message: %s.", strerror(errno)); + WARN("%s - Failed to open fifo to send message", strerror(errno)); return; }