From b8f74366162596d45d12eec7ac01d251d274b887 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Tue, 5 Feb 2013 15:52:03 -0800 Subject: [PATCH] Backport fix for execvp issue from trunk --- src/ChangeLog | 6 ++++++ src/emacs.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); } -- 2.11.4.GIT