miawendell / puttycyg

Automatically exported from code.google.com/p/puttycyg
0 stars 2 forks source link

After runemacs.exe, puttycyg waits before closing #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start puttycyg, set to always close on exit
2. Execute runemacs.exe, leave emacs running
3. Exit bash shell (Ctrl-D)

What is the expected result?  What happens instead?
I expect the puttycyg window to close immediately. Instead, it prints 
"logout" and sits there until emacs is closed, upon which it exits. One can 
also manually close the window and answer an "Are you sure?" prompt.

In the default Cygwin shell and in xterm it works as expected.

I looked at the source code for runemacs:
http://opensource.apple.com/source/emacs/emacs-50/emacs/nt/runemacs.c

I don't see anything obvious there that would cause this behaviour.

PutTTYcyg version: puttycyg-20091228
Cygwin version: 1.7.5-1
Windows version: XP Professional Version 2002 SP3

Original issue reported on code.google.com by bdfor...@gmail.com on 7 Jun 2010 at 10:02

Attachments:

GoogleCodeExporter commented 8 years ago
PuTTYcyg supports only Cygwin-compiled programs.  I haven't looked at the 
source there, but the fact that the 
runemacs.c file lives in a directory named /nt/ implies that it is a Windows 
program, not a Cygwin program.

You can run Windows GUI programs by using the 'start' or 'cygstart' commands:

cygstart runemacs.exe

In this case, the program should run detached from the terminal.  Note that 
Windows Console programs are 
specifically not supported, although they will work most of the time.

Original comment by medgar123 on 7 Jun 2010 at 10:21

GoogleCodeExporter commented 8 years ago
Thank you that works well.

Original comment by bdfor...@gmail.com on 7 Jun 2010 at 10:55