* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
authorDaniel Colascione <dancol@dancol.org>
Sun, 3 Feb 2013 16:45:37 +0000 (08:45 -0800)
committerDaniel Colascione <dancol@dancol.org>
Sun, 3 Feb 2013 16:45:37 +0000 (08:45 -0800)
daemon mode works on cygw32 when Emacs is installed and not just
during development.

src/ChangeLog
src/emacs.c

index 092302d..1c7771c 100644 (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).
index c351b1e..c494dff 100644 (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);
           }