summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@dancol.org>2013-02-05 15:52:03 -0800
committerDaniel Colascione <dancol@dancol.org>2013-02-05 15:52:03 -0800
commitb8f74366162596d45d12eec7ac01d251d274b887 (patch)
tree8d1aee747dcd1464bffb8ceac7f82b08b5f7c29f /src/emacs.c
parent463d631919baa394ee73a46843b2006aac9fdd4e (diff)
downloademacs-b8f74366162596d45d12eec7ac01d251d274b887.tar.gz
Backport fix for execvp issue from trunk
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index c0c230ef3dd..71d84efcbfc 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1036,7 +1036,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
argv[skip_args] = fdStr;
- execv (argv[0], argv);
+ execvp (argv[0], argv);
fprintf (stderr, "emacs daemon: exec failed: %d\n", errno);
exit (1);
}