Process forking on Windows

bruno at modulix onurb at xiludom.gro
Wed May 17 11:46:18 EDT 2006


Andrew Robert wrote:
> Hi everyone,
> 
> 
> I have a python program that will need to interact with an MQSeries
> trigger monitor.
> 
> It does this fine but it hogs the trigger monitor while it executes.
> 
> I'd like to fork the program off and terminate the parent process so
> that the trigger monitor frees up.

<just-asking>
Is this really the solution ?
</just-asking>

> 
> Does anyone how this can be accomplished on a Windows platform?

AFAIK, there's no fork in Windows - you might want to give a try with
CreateProcess.
http://www.byte.com/art/9410/sec14/art3.htm
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnucmg/html/UCMGch01.asp

HTH
-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list