This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Emacs-w32


On 2/3/2013 11:41 AM, Daniel Colascione wrote:
On 2/3/2013 4:40 AM, Ken Brown wrote:
On 2/3/2013 6:05 AM, ÐÐÐÑÐÐ ÐÐÐÐÐÐÐÐÐÐ wrote:
$ emacs-w32 --daemon
emacs daemon: exec failed: 2
Error: server did not start correctly

I can confirm this. Daniel, can you help?

=== modified file 'src/emacs.c' --- src/emacs.c 2013-02-02 17:14:24 +0000 +++ src/emacs.c 2013-02-03 16:34:57 +0000 @@ -1059,7 +1059,7 @@

argv[skip_args] = fdStr;

-            execv (argv[0], argv);
+            execvp (argv[0], argv);
              fprintf (stderr, "emacs daemon: exec failed: %d\n", errno);
              exit (1);
            }

Oops. I don't use the daemon feature in my day-to-day use, so I only tested it
during development; during development, argv[0] happened to be a correct
relative path to the Emacs binary.

I'll commit to the Emacs trunk and ask emacs-devel whether it's okay to put this
fix into the release branch.

Thanks. I can apply it locally to the Cygwin build in any case. I'll update the latter in a few days when the next pretest (24.2.93) is released.


Ken


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]