[lxc-devel] [lxc/master] monitor: report errno on exec() error
brauner on Github
lxc-bot at linuxcontainers.org
Fri May 5 12:39:05 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170505/a8fe44eb/attachment.bin>
-------------- next part --------------
From 00cccc8bd23ae08a197046cd5a8b81ed5b94e8ba Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Fri, 5 May 2017 14:37:27 +0200
Subject: [PATCH] monitor: report errno on exec() error
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c
index 3031f2f..410a0f4 100644
--- a/src/lxc/monitor.c
+++ b/src/lxc/monitor.c
@@ -366,7 +366,7 @@ int lxc_monitord_spawn(const char *lxcpath)
DEBUG("Using pipe file descriptor %d for monitord.", pipefd[1]);
execvp(args[0], args);
- ERROR("Failed to exec lxc-monitord.");
+ SYSERROR("failed to exec lxc-monitord");
exit(EXIT_FAILURE);
}
More information about the lxc-devel
mailing list