Red Hat Bugzilla – Bug 208167
cannot close window when tcsh is running a command
Last modified: 2010-03-23 07:11:27 EDT
Description of problem:
My shell is tcsh. If I start up an xterm, and hit the close button in my Window
manager, the window closes. On the other hand, if I do something in that window
(eg. hup sleep 10000), and then try to close the xterm window, the window does
not close until the sleep is complete. I don't know if the problem is tcsh, or
xterm. It may even be a kernel issue.
Can you create a temporary directory, run (strace -ff -o log xterm) in it,
reproduce the behavior, and attach an archive containing the contents of the
$ mkdir t
$ cd t
$ strace -ff -o log xterm
[now reproduce the behavior in the newly opened xterm]
$ cd ..
$ tar cjf xterm-strace.tar.bz2 t
$ rm -r t
... and attach the created xterm-strace.tar.bz2.
Created attachment 137931 [details]
running xterm with tcsh, ssh to the same host, start up xterm, and try to close the original xterm - fails
Thanks. Is that the trace of the "inner" or the "original" xterm? The trace
doesn't contain any indication of running ssh. A trace of the xterm you attempt
to close is necessary to find out whether the bug is in tcsh or xterm.
Created attachment 137937 [details]
Can you precisely, one step at a time, describe the way to reproduce the problem,
The second trace shows running tcsh in xterm, with unsuccessful attempts
to log in via ssh - but a trace of xterm is missing. It also shows running
tcsh in xterm, running "sleep 1000". xterm is terminated using Ctrl+C.
What is the relation of the two xterms? Which one have you tried to close?
If both, in what order?
I run xdm.
When I login through xdm, an xterm window pops up, and then the window manager
begins. I run tcsh for my login so tcsh is running in the xterm.
If I try to close the original xterm window, it will close.
If instead, I type "sleep 1000" in the xterm window, and then try to close the
window by clicking on the "X" in the top right hand corner, the window will not
The window will only close when the sleep is complete.
Does it not work like that for you?
No, the window closes immediately (using xdm, twm and xterm).
I'm afraid your new problem description doesn't clarify the questions in comment #6.
A trace of _the specific_ xterm you attempt to close and _the specific_ tcsh
running in the xterm is necessary to find out whether the bug is in tcsh or
xterm. If you can't remember the sequence of events from comment #5, please
attach a new strace that contains a strace of the specific xterm that you tried
to close and the specifix tcsh running in that xterm, along with any necessary
description of the steps to reproduce or any necessary relations between
different xterm or tcsh processes.
If you cannot reproduce the problem in a new xterm running within strace,
you can use the -p argument of strace to attach to a running xterm and a running
tcsh, although starting the xterm process by strace is preferable.