From 31f58b3fcec322dba1eed71e364335c30500066c Mon Sep 17 00:00:00 2001 From: Rui Xiang Date: Sat, 8 Jun 2013 18:04:47 +0800 Subject: [PATCH] lxc-monitord: remove hard code execvp path of lxc-monitord Sometimes, the path of lxc tools is not '/usr/bin', but '/usr/local/bin' or other. Then execvp lxc-monitord will fail in lxc_monitord_spawn. Signed-off-by: Rui Xiang Signed-off-by: Serge Hallyn --- 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 c04bb73d3..0717344e5 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -210,7 +210,7 @@ int lxc_monitord_spawn(const char *lxcpath) char pipefd_str[11]; char * const args[] = { - "/usr/bin/lxc-monitord", + "lxc-monitord", (char *)lxcpath, pipefd_str, NULL,