From 5257b7014c4d7fe3b48a75122746d4ec48a6c42c Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sun, 3 Feb 2013 08:45:37 -0800 Subject: [PATCH] * 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. --- src/ChangeLog | 6 ++++++ src/emacs.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 092302d6492..1c7771cb0d9 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-02 Paul Eggert Avoid file time stamp bug on MS-Windows (Bug#13149). diff --git a/src/emacs.c b/src/emacs.c index c351b1e9b9e..c494dff8cac 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1059,7 +1059,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.39.5