Mail Archives: cygwin/2006/12/11/10:38:04
Hi,
Lately rxvt does not exit properly. I think this a differen from the ghost
bash process that has been reported. The behavior is similar
for 20050409-2 and 20050409-3. Frequently (not always) when a
rxtv window is closed with the exit command, the program hangs
and never ends. In order to see what happens I will open 2
rxvt-bash windows:
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
508 1 508 508 ? 18 08:50:28 /usr/bin/cygrunsrv
1556 508 1556 1636 ? 18 08:50:28 /usr/sbin/sshd
9504 1 9504 9504 con 1007 10:45:26 /usr/bin/rxvt
I 10024 9504 10024 10856 0 1007 10:45:26 /usr/bin/bash
11196 1 11196 11196 con 1007 10:45:29 /usr/bin/rxvt
11272 11196 11272 10604 1 1007 10:45:29 /usr/bin/bash
10400 11272 10400 9636 1 1007 10:45:37 /usr/bin/ps
In TTY 0 I write exit:
$ exit
logout
Never exits
In TTY1:
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
508 1 508 508 ? 18 08:50:28 /usr/bin/cygrunsrv
1556 508 1556 1636 ? 18 08:50:28 /usr/sbin/sshd
9504 1 9504 9504 con 1007 10:45:26 /usr/bin/rxvt
11196 1 11196 11196 con 1007 10:45:29 /usr/bin/rxvt
11272 11196 11272 10604 1 1007 10:45:29 /usr/bin/bash
11272 11656 11920 1 1007 10:49:01 /usr/bin/ps
As you can see the bash process 10024 has ended but the rxvt process 9504
is still there. But
$ kill -9 9504
bash: kill: (9504) - No such process
and
$ ps -W |grep 9504
9504 1 9504 9504 con 1007 10:45:26 /usr/bin/rxvt
In order to finish the program one has to use the X button of the
windows window, or the windows task manager.
Similar behavior happens with other shells: tcsh, ksh, ash, zsh.
If instead of using "exit" one sends "kill -9" to the bash
process, the behavior is similar. If one sends "kill -9" to the
rxvt process the window desappears.
The output of cygcheck is attached.
RM
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -