Ctrl-c in bash causes background processes to exit

Dan Herron herron@informatik.uni-hamburg.de
Mon Jun 14 04:38:00 GMT 1999


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


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list