* 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.
This commit is contained in:
Daniel Colascione 2013-02-03 08:45:37 -08:00
parent 37a5665636
commit 5257b7014c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-02-03 Daniel Colascione <dancol@dancol.org>
* 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 <eggert@cs.ucla.edu>
Avoid file time stamp bug on MS-Windows (Bug#13149).

View file

@ -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);
}