public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.3.4: rxvt causes tcsh to exit when resized (nt)
@ 2001-11-07 23:57 Brandon Phillips
  0 siblings, 0 replies; 4+ messages in thread
From: Brandon Phillips @ 2001-11-07 23:57 UTC (permalink / raw)
  To: cygwin

Cygwin 1.3.4-4 under Windows XP.  rxvt 2.7.2-6, tcsh 6.10.00-3.  Default shell set to tcsh in /etc/passwd.  rxvt invoked via a batch file calling "bash --login -i -c rxvt".

Any attempt to resize the rxvt window while at the tcsh prompt will cause the window to disappear.  Starting bash, running another copy of tcsh and then attempting to resize reveals that it is causing tcsh to exit gracefully (the text "exit" is printed as if it had been entered as a command).  Perhaps tcsh is incorrectly interpreting some terminal control code?

The following message board article talks about a problem that sounds similar.  (Hopefully tcsh isn't so neglected that such problems are ignored for this long...):
http://sources.redhat.com/ml/cygwin/2000-06/msg00673.html

--
Brandon Phillips
bphillip@glue.umd.edu


--
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] 4+ messages in thread

* RE: 1.3.4: rxvt causes tcsh to exit when resized (nt)
@ 2001-11-08  3:52 Andrew McRae
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew McRae @ 2001-11-08  3:52 UTC (permalink / raw)
  To: cygwin

> Any attempt to resize the rxvt window while at the tcsh prompt will
> cause the window to disappear.

When an rxvt window is resized, the process running in it receives a
SIGWINCH. (This is reasonable; it's what SIGWINCH is for.)

Sending SIGWINCH to a running tcsh process causes it to exit. This
would seem to be the problem.

You can see the signal by setting up a signal handler. For example,
in bash, "kill -l" reports that SIGWINCH is signal 28, so:

    trap "echo caught SIGWINCH" 28

(And of course, you send SIGWINCH to a running tcsh process with
"kill -WINCH <process id>".)

I would think, just off the top of my head, that the fact that
SIGWINCH causes tcsh to exit is a bug.

Regards,
Andrew.

Brandon Phillips wrote:
> Cygwin 1.3.4-4 under Windows XP. rxvt 2.7.2-6, tcsh 6.10.00-3.
> Default shell set to tcsh in /etc/passwd. rxvt invoked via a batch
> file calling "bash --login -i -c rxvt".

> Any attempt to resize the rxvt window while at the tcsh prompt will
> cause the window to disappear. Starting bash, running another copy
> of tcsh and then attempting to resize reveals that it is causing
> tcsh to exit gracefully (the text "exit" is printed as if it had
> been entered as a command). Perhaps tcsh is incorrectly
interpreting
> some terminal control code?

> The following message board article talks about a problem that
> sounds similar. (Hopefully tcsh isn't so neglected that such
> problems are ignored for this long...):
> http://sources.redhat.com/ml/cygwin/2000-06/msg00673.html



=====
Andrew McRae  <anm@pobox.com>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.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] 4+ messages in thread

* Re: 1.3.4: rxvt causes tcsh to exit when resized (nt)
  2001-11-08  0:06 Brandon Phillips
@ 2001-11-08  2:59 ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2001-11-08  2:59 UTC (permalink / raw)
  To: cygwin

On Thu, Nov 08, 2001 at 03:06:06AM -0500, Brandon Phillips wrote:
> (My apologies.  This is the message with line breaks for non-wrapping email
> clients and archive readers.)
> 
> Cygwin 1.3.4-4 under Windows XP.  rxvt 2.7.2-6, tcsh 6.10.00-3.  Default
> shell set to tcsh in /etc/passwd.  rxvt invoked via a batch file calling
> "bash --login -i -c rxvt".
> 
> Any attempt to resize the rxvt window while at the tcsh prompt will cause
> the window to disappear.  Starting bash, running another copy of tcsh and
> then attempting to resize reveals that it is causing tcsh to exit gracefully
> (the text "exit" is printed as if it had been entered as a command).
> Perhaps tcsh is incorrectly interpreting some terminal control code?
> 
> The following message board article talks about a problem that sounds
> similar.  (Hopefully tcsh isn't so neglected that such problems are ignored
> for this long...):

No, not at all.  I can reproduce that behaviour which didn't occur
in 1.3.3.  Strange enough that only tcsh has it.  Starting e.g. vim
from the tcsh prompt and then resizing inside of vim is ok and tcsh
will not exit.  That's probably a signal related problem since
resizing a window results in sending a SIGWINCH to the process group
of the sshd child process, tcsh in this case.

> http://sources.redhat.com/ml/cygwin/2000-06/msg00673.html

Ah, yes, we already had a similar problem.  Somehow tcsh is very touchy.
I will look into this.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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] 4+ messages in thread

* RE: 1.3.4: rxvt causes tcsh to exit when resized (nt)
@ 2001-11-08  0:06 Brandon Phillips
  2001-11-08  2:59 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Brandon Phillips @ 2001-11-08  0:06 UTC (permalink / raw)
  To: cygwin

(My apologies.  This is the message with line breaks for non-wrapping email
clients and archive readers.)

Cygwin 1.3.4-4 under Windows XP.  rxvt 2.7.2-6, tcsh 6.10.00-3.  Default
shell set to tcsh in /etc/passwd.  rxvt invoked via a batch file calling
"bash --login -i -c rxvt".

Any attempt to resize the rxvt window while at the tcsh prompt will cause
the window to disappear.  Starting bash, running another copy of tcsh and
then attempting to resize reveals that it is causing tcsh to exit gracefully
(the text "exit" is printed as if it had been entered as a command).
Perhaps tcsh is incorrectly interpreting some terminal control code?

The following message board article talks about a problem that sounds
similar.  (Hopefully tcsh isn't so neglected that such problems are ignored
for this long...):
http://sources.redhat.com/ml/cygwin/2000-06/msg00673.html

--
Brandon Phillips
bphillip@glue.umd.edu


--
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] 4+ messages in thread

end of thread, other threads:[~2001-11-08  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 23:57 1.3.4: rxvt causes tcsh to exit when resized (nt) Brandon Phillips
2001-11-08  0:06 Brandon Phillips
2001-11-08  2:59 ` Corinna Vinschen
2001-11-08  3:52 Andrew McRae

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