This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bash becomes orphaned when remote terminal killed


I've found this question in the archives, but not the answer.  I
login to a machine running Cygwin (call it mypc) from one running 
Linux with this command:

   xterm -e ssh mypc

When I close the xterm on the Linux machine, the login bash process 
on the Cygwin machine becomes an orphan instead of terminating.  Is 
there a way to have the bash process terminate instead?

The reason this is a problem, or rather an annoyance, is that from 
this bash I run a simple terminal emulator program that copies 
everything it gets from the tty to a serial port and from the serial 
port to the tty.  Once started, there is no way to end the program 
other than to send it a signal.  I can do this from another ssh 
login session, but it would be a lot more convenient to just close 
the xterm.

Regards,
Gary

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]