public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: cygwin-2 process handling
Date: Tue, 19 May 2015 17:36:00 -0000	[thread overview]
Message-ID: <555B6F71.4040906@cornell.edu> (raw)
In-Reply-To: <1573487218.1490468.1431969356192.JavaMail.yahoo@mail.yahoo.com>

On 5/18/2015 1:15 PM, Michael Mauger wrote:
> Since the upgrade to cygwin-2 I've been having consistent problems using emacs.  My emacs config has not changed and the most recent update to cygwin-2 has helped.  I'm using the emacs-w32 executable and have numerous remote cygwin ssh sessions running underneath emacs so that I can edit remote files and run remote shell sessions within emacs.
>
> When I then start up a Windows console executable (in my case Oracles sqlplus.exe, but cmd.exe works too), I start getting hanging in the cygwin ssh sessions.  Filename completion (which involves emacs interacting with a ssh session) or opening a remote file (which involves emacs transferring the file locally via scp or inline) will both hang.  It generally requires that I send a SIGUSR2 signal to the emacs-w32 process which emacs responds to by halting whatever is running and returning to the top level interaction loop.  When it does so, the process appears to be waiting for input. If I then end the console session, the interaction returns to normal.  Trying to start a second Windows console session will also hang.
>
> In Emacs *scratch* buffer
>    (shell "*One*")  C-j
>    #<buffer *One*>
>    (shell "*Two*")  C-j
>    #<buffer *Two*>
>
>
>    (let ((explicit-shell-file-name "/c/Windows/System32/cmd.exe")) (shell "*Three*"))  C-j
>
>    #<buffer *Three*>  (let ((explicit-shell-file-name "/c/Windows/System32/cmd.exe")) (shell "*Four*"))  C-j
>    *** HANGS ***

I can reproduce this, and even more simply.  If I start a single shell 
running cmd.exe, then emacs hangs on the next attempt to call a 
subprocess.  For example, I first evaluate the following in the 
*scratch* buffer

(let ((explicit-shell-file-name "/c/Windows/System32/cmd.exe")) (shell))

I then try to list a directory with 'C-x d', and emacs hangs.

The problem appears in the 2015-03-17 cygwin snapshot but not in the 
2015-03-11 snapshot.  I'm trying to do a git bisection to narrow it down 
further, but so far I haven't succeeded because I get errors when I try 
to build the git checkouts from around that time.  I'll keep trying.

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

  reply	other threads:[~2015-05-19 17:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 19:18 Michael Mauger
2015-05-19 17:36 ` Ken Brown [this message]
2015-05-20  1:19   ` Ken Brown
2015-05-21 12:13     ` Takashi Yano
2015-05-21 15:50       ` Ken Brown
2015-05-27 12:39       ` Corinna Vinschen
2015-05-27 15:57         ` Corinna Vinschen
2015-05-28 11:48           ` Corinna Vinschen
2015-05-28 12:44             ` Takashi Yano
2015-05-28 14:16               ` Takashi Yano
2015-05-28 15:53                 ` Corinna Vinschen
2015-06-07  0:03                   ` cygwin-2 process handling (about SIGHUP) Takashi Yano
2015-06-08 12:09                     ` Corinna Vinschen
2015-06-08 13:50                       ` Marco Atzeri
2015-06-08 14:18                         ` Corinna Vinschen
2015-05-28 12:09           ` cygwin-2 process handling Takashi Yano
2015-05-22 17:34 Michael Mauger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555B6F71.4040906@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).