2006/4/5, Tom Lane <[EMAIL PROTECTED]>:
What happens if process Y goes away between the time you obtain a
handle for it and the time you try to run this DuplicateHandle call?

The structures for a process should remain as long as there are any open HANDLEs, even if the process has ended. Threads behave the same way, which is why a creator needs to remember to always close the HANDLE returned from CreateThread.

Reply via email to