X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-CornellRouted: This message has been Routed already. Message-ID: <510EA65E.2080704@cornell.edu> Date: Sun, 03 Feb 2013 13:03:10 -0500 From: Ken Brown <kbrown AT cornell DOT edu> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Emacs-w32 References: <CAHWh1-VgCCnpjyQeC8H26+AZ3mZ3idOt6EcSoPtGNL5ZJY+LqA AT mail DOT gmail DOT com> <510E5ACE DOT 6000508 AT cornell DOT edu> <510E933E DOT 9000500 AT dancol DOT org> In-Reply-To: <510E933E.9000500@dancol.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-Original-Sender: kbrown AT cornell DOT edu - Sun Feb 3 13:03:14 2013 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam 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