From: Daniel Colascione Date: Tue, 5 Feb 2013 23:52:03 +0000 (-0800) Subject: Backport fix for execvp issue from trunk X-Git-Tag: emacs-24.2.93~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b8f74366162596d45d12eec7ac01d251d274b887;p=emacs.git Backport fix for execvp issue from trunk --- diff --git a/src/ChangeLog b/src/ChangeLog index d09ad50ba12..9cfcd1139ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-02-03 Daniel Colascione + + * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that + daemon mode works on cygw32 when Emacs is installed and not just + during development. + 2013-02-01 Eli Zaretskii * callproc.c (Fcall_process): Make sure program name in PATH and 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); }