delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/11/10:38:04

X-Spam-Check-By: sourceware.org
X-Matched-Lists: []
Message-ID: <380-2200612111153742474@cantv.net>
Reply-To: rodmedina AT cantv DOT net
From: "Rodrigo Medina" <rodmedina AT cantv DOT net>
To: cygwin AT cygwin DOT com
Subject: rxvt NOT RESPONDING when exiting
Date: Mon, 11 Dec 2006 11:37:42 -0400
MIME-Version: 1.0
X-Virus-Status: Clean
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019