]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-monitord: remove hard code execvp path of lxc-monitord
authorRui Xiang <rui.xiang@huawei.com>
Sat, 8 Jun 2013 10:04:47 +0000 (18:04 +0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 10 Jun 2013 12:07:29 +0000 (07:07 -0500)
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>
src/lxc/monitor.c

index c04bb73d3db62a611ef574ecd43274ba73ae2b76..0717344e513b24fecbcd1622b4bafd4dda01a294 100644 (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,