Re: WIndows process table and process image.
- From: "Ivan Brugiolo [MSFT]" <Ivan.Brugiolo@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Jun 2006 16:28:17 -0700
As long as there is one active referece to the process object,
then the process will in the process list.
Zombie processes are normally caused by a handle leak on some other process.
For example this code would cause that
HANDLE hProcess = OpenProcess(PID,...);
TerminateProcess(hProcess,...);
You would need to call CloseHandle(hProcess) to remove
your own reference to the process object.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Chris" <chrisforng@xxxxxxxxxxxxxxxx> wrote in message
news:%232burB1iGHA.3816@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Please help me understand how Windows process is managed.
My application uses some utility programs such as nslookup and dnscmd.
Fo some cases my application needs to kill those child process by calling
TerminateProcess().
Here is something I cannot understand, after killing a process why the
process is still in process table but its image is gone?
I used Process explorer to check, the process is listed but its image does
not exist.
I tried windbg to connect to the process but windbg told me the process
image is not there.
The process does hold some file handles so its current directory cannot be
removed.
Is there a zambie process in Windows as unix? I cannot find any documents
about Windows Zambie processes.
Thanks,
Chris
.
- Follow-Ups:
- Re: WIndows process table and process image.
- From: anton bassov
- Re: WIndows process table and process image.
- From: Chris
- Re: WIndows process table and process image.
- References:
- WIndows process table and process image.
- From: Chris
- WIndows process table and process image.
- Prev by Date: WIndows process table and process image.
- Next by Date: Re: WIndows process table and process image.
- Previous by thread: WIndows process table and process image.
- Next by thread: Re: WIndows process table and process image.
- Index(es):
Relevant Pages
|