This is the mail archive of the 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

Chris Faylor <> writes:
> 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.

This point is very important -- the NT kill program will *not* detach
any DLLs, and you may end up in an inconsistent, or at the very least,
a confused state. This took me a while to figure out (and of course 
found the MSDJ article right after ...).

The MS docs do talk about the "right" way to kill, and TerminateProcess
as used by KILL.EXE is not it.