public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin-2 process handling
@ 2015-05-18 19:18 Michael Mauger
  2015-05-19 17:36 ` Ken Brown
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Mauger @ 2015-05-18 19:18 UTC (permalink / raw)
  To: cygwin

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 ***



Things dramatically improved with Cygwin-2.0.2-1 "restores the #include <sys/select.h> in <sys/time.h>".  I could run more than one process at a time, and worked perfectly prior to cygwin-2.


MICHAEL MAUGER // FSF Member // GNU Emacs sql-mode maintainer // GNU Linux, GNU Emacs, OwnCloud

--
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

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: cygwin-2 process handling
@ 2015-05-22 17:34 Michael Mauger
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Mauger @ 2015-05-22 17:34 UTC (permalink / raw)
  To: cygwin

Ken Brown said:

> Takashi Yano wrote:
>>

>> I have made a patch attached to resolve this problem. Please have
>> a look.
>>
> 
> Thanks! That fixes it for me. Michael (OP), are you able to build cygwin1.dll and test it?
> 
> 
> Ken


Unfortunately, I don't have the ability to build a new cygwin.dll on my work laptop.  I'll 

have to rely upon your testing, but since you were able to replicate my symptoms and the
problem can be traced to a specific change and a documented behavior, I'm feeling pretty
confident in the patch.

Thanks for your effort on this.

MICHAEL MAUGER // FSF Member // GNU Emacs sql-mode maintainer // GNU Linux, GNU Emacs, OwnCloud

--
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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-06-08 14:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 19:18 cygwin-2 process handling Michael Mauger
2015-05-19 17:36 ` Ken Brown
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

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).