This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Ctrl-c in bash causes background processes to exit
- To: cygwin@sourceware.cygnus.com
- Subject: Re: Ctrl-c in bash causes background processes to exit
- From: Dan Herron <herron@informatik.uni-hamburg.de>
- Date: Fri, 21 May 1999 09:44:54 +0200
At 01:32 AM 5/21/99 -0400, Kevin Low wrote:
> I am using bash from cygwin b20. How do I prevent all background
> jobs from exiting whenever I press ctrl-c in bash? For example, if
> I run telnet in the background, pressing ctrl-c will kill telnet.
You need to set "tty" in your CYGWIN environment variable. E.g.,
export CYGWIN="tty" (or set it in the "system"--> environment control-panel.)
Somebody told me this a while ago, but pointed out that this screws up
lots of programs that use the console IO. And, indeed, it made all sorts
of things go wrong for me, although I can't actually recall *what* at
this point.
Actually, can somebody explain what it is that TTY does? And why it
causes problems both to have it and to not have it? And is there a list
of all the CYGWIN options somewhere, with a description of what each one does?
Dan
Daniel Herron Universitaet Hamburg / Fachbereich Informatik
phone: (49) 40 / 428 83 2519 AB Natuerlichsprachliche Systeme
fax: (49) 40 / 428 83 2515 Vogt-Koelln-Strasse 30
herron@informatik.uni-hamburg.de D-22527 Hamburg
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com