Commit b8f74366 authored by Daniel Colascione's avatar Daniel Colascione

Backport fix for execvp issue from trunk

parent 463d6319
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-01 Eli Zaretskii <eliz@gnu.org>
* callproc.c (Fcall_process): Make sure program name in PATH and
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment