public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Ctrl-c in bash causes background processes to exit
@ 1999-05-20 22:33 Kevin Low
  1999-05-21  0:45 ` Dan Herron
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kevin Low @ 1999-05-20 22:33 UTC (permalink / raw)
  To: cygwin

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

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

* Re: Ctrl-c in bash causes background processes to exit
  1999-05-20 22:33 Ctrl-c in bash causes background processes to exit Kevin Low
@ 1999-05-21  0:45 ` Dan Herron
  1999-05-31 21:10   ` Dan Herron
  1999-05-31 21:10 ` Kevin Low
  1999-06-14  4:38 ` Dan Herron
  2 siblings, 1 reply; 8+ messages in thread
From: Dan Herron @ 1999-05-21  0:45 UTC (permalink / raw)
  To: cygwin

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

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

* Ctrl-c in bash causes background processes to exit
  1999-05-20 22:33 Ctrl-c in bash causes background processes to exit Kevin Low
  1999-05-21  0:45 ` Dan Herron
@ 1999-05-31 21:10 ` Kevin Low
  1999-06-14  4:38 ` Dan Herron
  2 siblings, 0 replies; 8+ messages in thread
From: Kevin Low @ 1999-05-31 21:10 UTC (permalink / raw)
  To: cygwin

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

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

* Re: Ctrl-c in bash causes background processes to exit
  1999-05-21  0:45 ` Dan Herron
@ 1999-05-31 21:10   ` Dan Herron
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Herron @ 1999-05-31 21:10 UTC (permalink / raw)
  To: cygwin

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

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

* Re: Ctrl-c in bash causes background processes to exit
  1999-05-20 22:33 Ctrl-c in bash causes background processes to exit Kevin Low
  1999-05-21  0:45 ` Dan Herron
  1999-05-31 21:10 ` Kevin Low
@ 1999-06-14  4:38 ` Dan Herron
  1999-06-14 19:47   ` cygwin1.dll & tty (was Re: Ctrl-c in bash ...) Samy Alex ZAIMI
  1999-06-30 22:10   ` Ctrl-c in bash causes background processes to exit Dan Herron
  2 siblings, 2 replies; 8+ messages in thread
From: Dan Herron @ 1999-06-14  4:38 UTC (permalink / raw)
  To: cygwin

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

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

* cygwin1.dll & tty (was Re: Ctrl-c in bash ...)
  1999-06-14  4:38 ` Dan Herron
@ 1999-06-14 19:47   ` Samy Alex ZAIMI
  1999-06-30 22:10     ` Samy Alex ZAIMI
  1999-06-30 22:10   ` Ctrl-c in bash causes background processes to exit Dan Herron
  1 sibling, 1 reply; 8+ messages in thread
From: Samy Alex ZAIMI @ 1999-06-14 19:47 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2480 bytes --]

Dan Herron a écrit :

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

Well, that's very simple : shell scripts like ./configure can fail with here
documents if tty is used instead of notty.
Afterwards, bash behaves strangely : no more history, no more tab completion,
commands echoed twice ...
There is a good description of the symptoms (but not of the remedy) in a previous
post by Mikey :
1999/02/12/18:43:39 (Here documents in ash shell scripts mess up stdin on 9x).
Glenn Spell said that this problem is solved using 19990502's snapshot.

I have tried another snapshot, from 19990603, said to be stable as well, and I
have tried the tests proposed by Mikey with here documents. The problem is solved
as well.

One remark though : I had an old cygwin1.dll under windows directory (needed to
call programs build with cygwin from outside the bash shell). It is necessary to
rename it, or erase it with the new dll.
This is a bit strange to me : I have decided not to mix Win and CygWin with the
following two settings :
1. the $PATH variable inside the bash shell doesn't include C:\WINDOWS
2. the %PATH% variable inside a DOS shell (set inside my AUTOEXEC) doesn't include
CygWin paths.
I thought this would be enough to separate the two worlds. Still, if I do
    cygcheck gcc
I have :
D:\usr\bin\gcc.exe
  C:\WINDOWS\SYSTEM\advapi32.dll
    C:\WINDOWS\SYSTEM\KERNEL32.dll
  D:\usr\bin\cygwin1.dll                                    <-------------- The
new one.
    C:\WINDOWS\SYSTEM\user32.dll
      C:\WINDOWS\SYSTEM\GDI32.dll
but if the old "c:\windows\cygwin1.dll" is present, gcc doesn't work.
If it is missing or replaced by the new dll, gcc does work.
How come that "c:\windows\cygwin1.dll" has an influence on gcc and at the same
time seems not to be needed ?

--
SAZ



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

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

* Re: Ctrl-c in bash causes background processes to exit
  1999-06-14  4:38 ` Dan Herron
  1999-06-14 19:47   ` cygwin1.dll & tty (was Re: Ctrl-c in bash ...) Samy Alex ZAIMI
@ 1999-06-30 22:10   ` Dan Herron
  1 sibling, 0 replies; 8+ messages in thread
From: Dan Herron @ 1999-06-30 22:10 UTC (permalink / raw)
  To: cygwin

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

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

* cygwin1.dll & tty (was Re: Ctrl-c in bash ...)
  1999-06-14 19:47   ` cygwin1.dll & tty (was Re: Ctrl-c in bash ...) Samy Alex ZAIMI
@ 1999-06-30 22:10     ` Samy Alex ZAIMI
  0 siblings, 0 replies; 8+ messages in thread
From: Samy Alex ZAIMI @ 1999-06-30 22:10 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2480 bytes --]

Dan Herron a écrit :

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

Well, that's very simple : shell scripts like ./configure can fail with here
documents if tty is used instead of notty.
Afterwards, bash behaves strangely : no more history, no more tab completion,
commands echoed twice ...
There is a good description of the symptoms (but not of the remedy) in a previous
post by Mikey :
1999/02/12/18:43:39 (Here documents in ash shell scripts mess up stdin on 9x).
Glenn Spell said that this problem is solved using 19990502's snapshot.

I have tried another snapshot, from 19990603, said to be stable as well, and I
have tried the tests proposed by Mikey with here documents. The problem is solved
as well.

One remark though : I had an old cygwin1.dll under windows directory (needed to
call programs build with cygwin from outside the bash shell). It is necessary to
rename it, or erase it with the new dll.
This is a bit strange to me : I have decided not to mix Win and CygWin with the
following two settings :
1. the $PATH variable inside the bash shell doesn't include C:\WINDOWS
2. the %PATH% variable inside a DOS shell (set inside my AUTOEXEC) doesn't include
CygWin paths.
I thought this would be enough to separate the two worlds. Still, if I do
    cygcheck gcc
I have :
D:\usr\bin\gcc.exe
  C:\WINDOWS\SYSTEM\advapi32.dll
    C:\WINDOWS\SYSTEM\KERNEL32.dll
  D:\usr\bin\cygwin1.dll                                    <-------------- The
new one.
    C:\WINDOWS\SYSTEM\user32.dll
      C:\WINDOWS\SYSTEM\GDI32.dll
but if the old "c:\windows\cygwin1.dll" is present, gcc doesn't work.
If it is missing or replaced by the new dll, gcc does work.
How come that "c:\windows\cygwin1.dll" has an influence on gcc and at the same
time seems not to be needed ?

--
SAZ



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

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

end of thread, other threads:[~1999-06-30 22:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-20 22:33 Ctrl-c in bash causes background processes to exit Kevin Low
1999-05-21  0:45 ` Dan Herron
1999-05-31 21:10   ` Dan Herron
1999-05-31 21:10 ` Kevin Low
1999-06-14  4:38 ` Dan Herron
1999-06-14 19:47   ` cygwin1.dll & tty (was Re: Ctrl-c in bash ...) Samy Alex ZAIMI
1999-06-30 22:10     ` Samy Alex ZAIMI
1999-06-30 22:10   ` Ctrl-c in bash causes background processes to exit Dan Herron

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