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 <rui.xiang@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Rui Xiang 2013-06-08 18:04:47 +08:00 committed by Serge Hallyn
parent f02abefef9
commit 31f58b3fce

View File

@ -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,