This is the mail archive of the cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: Repost: process table shows already killed processes
- To: Chris Faylor <cgf@cygnus.com>, Earnie Boyd <earnie_boyd@yahoo.com>
- Subject: Re: Repost: process table shows already killed processes
- From: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Date: Thu, 11 Mar 1999 22:38:44 +0100
- CC: cygwin-developers@sourceware.cygnus.com
- Delivered-To: listarch-cygwin-developers@sourceware.cygnus.com
- Delivered-To: mailing list cygwin-developers@sourceware.cygnus.com
- Mailing-List: contact cygwin-developers-help@sourceware.cygnus.com; run by ezmlm
- References: <36E774FB.E74790F3@cityweb.de> <19990311111421.A887@cygnus.com>
- Sender: cygwin-developers-owner@sourceware.cygnus.com
Chris Faylor wrote:
>
> 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
Interesting point. I haven't the ultimate insight in the process
handling, so I wonder, that the cleanup seems to be done reproducable
on the second `ps' call.
Why am I forced, to use M$-kill instead of cygwin-kill? It's,
because I'm not able, to kill a process, which is started
as user `system' (from service manager via srvany) which
has no controlling terminal (setsid):
tcsh% kill -9 1001
1001: Not super-user.
I don't know, why this happens, especially, if I use my extension
for Unix-like permissions. If I use it, I'm able, to kill any
process of any user, but unfortunately not the above described ones.
Earnie Boyd wrote:
> Could the problem be a timing issue, where syslogd has more buffers to
> flush before disappearing or perhaps processing some event and
> captures the kill event before shutting down? I notice that you've
> killed the processes in the reverse order that you started them, what
> happens if you kill syslogd first?
The order of killing is irrelevant. In any case, at least one of the
killed processes remains in the process table, until the second `ps'
call is done.
Regards,
Corinna