I used to rlogin/telnet a server and use xterm& to create several xterm sessions. But from time to time, the xterm may hang there and not responding at all(window can't be closed), leaving just a blank window.

I know the pid of all opened xterms from the 'mother xterm'. Is there any way to find out which is hanging one? I'd like to kill it immediately.

My environment is followed. I choose CDE as my desktop environment. Thanks!

Linux 2.6.9-67.ELsmp x86_64
OS: RedHat Enterprise Linux 4.0 U6
xterm: X.Org 6.8.2(192)

link|improve this question
2  
Also, this doesn't belong on StackOverflow. – Filip Ekberg Jan 26 '11 at 7:49
feedback

migrated from stackoverflow.com Jan 27 '11 at 8:43

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 1 down vote accepted

Try pressing Control+Alt+Esc, you should get an X instead of your curser and it should kill whatever you click on. If the shortcut dosen't work run xkill from another terminal and the rest is the same.

link|improve this answer
@UserZer0, xkill rocks! Thanks! – sandyleo Jan 26 '11 at 8:09
feedback

Run xkill, click on the blank window. Right click to cancel.

link|improve this answer
feedback

You can use the kill command with -9 like this: kill -9 pid

link|improve this answer
is there any quick way to know the pid of hung xterm? – sandyleo Jan 26 '11 at 8:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.