delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/31/14:36:23

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=F7VJwRjzIrbGkbWo
Jn3uoTty0oOrQjxepyQKZ1ufvIF+o88KvXTFz9jilw7CrZEzjh4duBXRwKSrPBj3
LjNRCCBoW8dL99XXZXOGr9TGE12PWpZ9RRmamQ1BDpIkkKfVXHFkiJzustidzsKt
M0tbrVsZkWK/Xz6CattJWKx4U8k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=9CAhIUzaFn+FvbweBI1jNM
EwwEk=; b=RVq/4xYGVe7Hx0xyxlCCp9PCuGNViDyvxlZyOWRDMZqznV9OIDlwBN
qfuFqaxsSwAlQGo1J2VKqDhywp6k7NanE764EhHCXbqynX38PNiBA27Y36ctgE9b
xJ5NpSjKs9assK9GOB85FePOReyBdAFPybsEygNOkb9fhsFz93bSw=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=emacs197609, mx, 2.8.2, srw
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Emacs 25.2.1 Fails to Start Server
To: cygwin AT cygwin DOT com
References: <2017728155755 DOT 692313 AT A6>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <0f58d454-db32-0c65-8d9c-eaad003174d1@cornell.edu>
Date: Mon, 31 Jul 2017 14:35:56 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <2017728155755.692313@A6>
X-PMX-Cornell-Gauge: Gauge=X
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 7/28/2017 5:57 PM, Erik Knowles wrote:
> 
> I just upgraded from Emacs 24.x to 25.2.1 (via installing all available cygwin updates, including Emacs). Now I find that my Emacs server start hangs after processing my .emacs file but before creating the server socket (it creates the directory used to store the socket information file, but the file itself is not created).
> 
> My normal server start, run from a Windows shortcut, is:
> 
> C:\cygwin\bin\bash -c 'emacsclient -n -c --alternate-editor=""&'

I wouldn't expect this to work, because of the '&'.  Here's what I see when I run that command interactively:

$ emacsclient -n -c --alternate-editor=""&
[1] 10404

$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
[...]
S   10404    6660   10404       9300  pty0      197609 14:21:41 /usr/bin/emacsclient-X11

Putting emacsclient in the foreground makes it run as expected:

$ fg
emacsclient -n -c --alternate-editor=""
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".

[...]
Starting Emacs daemon.
Restarting server
Emacs daemon should have started, trying to connect again

$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
     6660    6396    6660       8836  pty0      197609 16:19:49 /usr/bin/bash
    10932    6660   10932       7860  pty0      197609 14:24:24 /usr/bin/ps
     3620       1    3620       3620  ?         197609 14:23:27 /usr/bin/emacs-X11

$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
[...]
    3620       1    3620       3620  ?         197609 14:23:27 /usr/bin/emacs-X11

$ ls -l /tmp/emacs197609/
total 1
srw------- 1 kbrown None 0 2017-07-31 14:23 server=

And just running emacsclient in the foreground to begin with also works as expected for me.

> emacs --daemon -q

This works fine for me also:

$ emacs-w32 --daemon -q
Starting Emacs daemon.

$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
[...]
     6744       1    6744        228  ?         197609 14:28:58 /usr/bin/emacs-w32

$ ls -l /tmp/emacs197609/
total 1
srw------- 1 kbrown None 0 2017-07-31 14:28 server=

Your cygcheck output shows two cygwin1.dlls in your path:

3373k 2017/07/12 D:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2017-07-12 09:53
    Cygwin DLL version info:
        DLL version: 2.8.2
[...]
 2586k 2010/08/31 \\a1\utils\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2010-08-31 08:58
    Cygwin DLL version info:
        DLL version: 1.7.7
[...]
Warning: There are multiple cygwin1.dlls on your path

I don't know if this could cause the problems you're seeing, but could you try removing \\a1\utils from your path and see if that helps?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019