monitor: do not log useless warnings

lxc-monitord is deprecated so this is expected to fail. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent a9e1109e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment