www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/03/11/11:13:40

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 11 Mar 1999 11:14:21 -0500
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
Cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Repost: process table shows already killed processes
Message-ID: <19990311111421.A887@cygnus.com>
References: <36E774FB DOT E74790F3 AT cityweb DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <36E774FB.E74790F3@cityweb.de>; from Corinna Vinschen on Thu, Mar 11, 1999 at 08:47:07AM +0100

I can't explain the behavior (which is why I haven't responded) but
I can point out that if you are using some non-cygwin utility to kill
the processes then the processes won't be able to clean themselves
out of the cygwin process table.

cgf

On Thu, Mar 11, 1999 at 08:47:07AM +0100, Corinna Vinschen wrote:
>Hello,
>
>I have asked this already on 2/26/99:
>
>----- snip -----
>Hi!
>
>Imagine the following:
>
>Via service manager, I have installed three processes `portmap',
>`syslogd' and `inetd'. If I login now via simple console
>window, I can see the following process table:
>
>        /home/admin[1]$ ps -ef
>             UID    PID   PPID TTY     STIME COMMAND
>          system   1003      1  -1  13:11:17 /usr/local/sbin/syslogd.exe
>          system   1004      1  -1  13:11:18 /usr/local/sbin/portmap.exe
>          system   1005      1  -1  13:11:18 /usr/local/sbin/inetd.exe
>        administ   1006   1006  -1  13:11:26 /usr/bin/tcsh.exe
>        administ   1009   1006  -1  13:11:29 /usr/bin/ps
>
>Now I call the KILL.EXE from NTReskit:
>
>        /home/admin[2]$ KILL.EXE inetd
>        process #286 [inetd.exe] killed
>        /home/admin[3]$ KILL.EXE portmap
>        process #148 [portmap.exe] killed
>        /home/admin[4]$ KILL.EXE syslogd
>        process #295 [syslogd.exe] killed
>
>And, at last, I take a look into the process table:
>
>        /home/admin[5]$ ps -ef
>             UID    PID   PPID TTY     STIME COMMAND
>          system   1003      1  -1  13:11:17 /usr/local/sbin/syslogd.exe
>        administ   1006   1006  -1  13:11:26 /usr/bin/tcsh.exe
>        administ   1018   1006  -1  13:15:04 /usr/bin/ps
>
>???The syslogd is still in the table??? Ok, next try:
>
>        /home/admin[6]$ ps -ef
>             UID    PID   PPID TTY     STIME COMMAND
>        administ   1006   1006  -1  13:11:26 /usr/bin/tcsh.exe
>        administ   1019   1006  -1  13:16:30 /usr/bin/ps
>
>Oh, on the second try, the already killed processes are erased
>from the table! This behaviour is 100% reproducable.
>
>Could somebody explain this behaviour? I would like to change it
>to the expected one, if it's possible.
>
>Regards,
>Corinna
>
>

-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

- Raw text -


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