Module: xenomai-3
Branch: next
Commit: da516f92036ed1a462ecafe4d78c2763e2b637ab
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=da516f92036ed1a462ecafe4d78c2763e2b637ab

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Mar  3 15:10:21 2015 +0100

copperplate/registry: execlp() is pointless with an absolute path

---

 lib/copperplate/registry.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index 92443e7..6d038f3 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -644,8 +644,8 @@ static int spawn_daemon(const char *sessdir)
        pid = vfork();
        switch (pid) {
        case 0:
-               execlp(exec_path, "sysregd", "--daemon",
-                      "--root", sessdir, NULL);
+               execl(exec_path, "sysregd", "--daemon",
+                     "--root", sessdir, NULL);
                _exit(1);
        case -1:
                sa.sa_handler = SIG_DFL;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to