From: Daniel Colascione Date: Sun, 3 Feb 2013 16:45:37 +0000 (-0800) Subject: * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that X-Git-Tag: emacs-24.3.90~173^2~7^2~153^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5257b7014c4d7fe3b48a75122746d4ec48a6c42c;p=emacs.git * 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. --- 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); }