public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: bash, background java VMs and ctrl-C
@ 2002-02-26 14:16 Brian P Kasper
  2002-02-26 14:27 ` Jeff Meredith
  0 siblings, 1 reply; 3+ messages in thread
From: Brian P Kasper @ 2002-02-26 14:16 UTC (permalink / raw)
  To: cygwin; +Cc: jmeredith

Jeff --

Check the value of the CYGWIN environment variable
for you and your coworker who isn't having the problem.
Does your coworker have 'tty' in the variable?  Do you
not have it?

I had a problem with ^C killing ssh sessions over which
I was tunnelling X Windows packets.  I was able to work
around the problem by adding 'tty' to my CYGWIN variable.

-Brian Kasper
 The Aerospace Corporation
 kasper@aero.org


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* RE: bash, background java VMs and ctrl-C
  2002-02-26 14:16 bash, background java VMs and ctrl-C Brian P Kasper
@ 2002-02-26 14:27 ` Jeff Meredith
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Meredith @ 2002-02-26 14:27 UTC (permalink / raw)
  To: 'Brian P Kasper', cygwin

That does the trick! Life is sweet (again). Thank you very much.


Jeff meredith
mer@edgility.com


-----Original Message-----
From: Brian P Kasper [mailto:Brian.P.Kasper@aero.org] 
Sent: Tuesday, February 26, 2002 2:10 PM
To: cygwin@cygwin.com
Cc: jmeredith@edgility.com
Subject: Re: bash, background java VMs and ctrl-C

Jeff --

Check the value of the CYGWIN environment variable
for you and your coworker who isn't having the problem.
Does your coworker have 'tty' in the variable?  Do you
not have it?

I had a problem with ^C killing ssh sessions over which
I was tunnelling X Windows packets.  I was able to work
around the problem by adding 'tty' to my CYGWIN variable.

-Brian Kasper
 The Aerospace Corporation
 kasper@aero.org


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* bash, background java VMs and ctrl-C
@ 2002-02-26 14:10 Jeff Meredith
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Meredith @ 2002-02-26 14:10 UTC (permalink / raw)
  To: cygwin

I have a difficult time with the following bash (or maybe cygwin.dll)
behavior:
	bash-2.05a$> java com.edgility.<blah>.ClassName &
	bash-2.05a$> tail -f mylogfile
	...
	ctrl-C

as soon as I hit ctrl-C the java VM exits.

In the bash reference manual it talks about background processes being
in different process groups and not propagating a SIGINT to those
processes.

I read through every option available to stty and tried various ones
that sounded related with no effect. I have also tried starting the VM
with: (trap "" 1 2 3; java com.edgility.<blah>.Classname &) also with no
effect.

Further, I read a lot in the mail archive for this group about bash vs.
cmd and the difference between ctrl-C and ctrl-break and how cygwin.dll
handles interrupts. It looks like a change went into 1.3.7 controlling
how signals are propagated, but I wasn't clear on exactly what effect
the change had. I was running 1.3.6 and upgraded to 1.3.9 and the
behavior is exactly the same in both cases for me. What is absolutely
baffling is that a co-worker is also running 1.3.9 and the same version
of bash and he does not see this behavior.

All of this leaves me wondering, 1. what is supposed to happen to
background processes in bash when one types the interrupt character? 2.
is there some configuration option that affects this?

Any insights (penetrating or otherwise) would be appreciated,
jeff meredith (jmeredith@edgility.com)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-02-26 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-26 14:16 bash, background java VMs and ctrl-C Brian P Kasper
2002-02-26 14:27 ` Jeff Meredith
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26 14:10 Jeff Meredith

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