in reply to Fork in Win32 environment
If this is about all that your child does, perhaps you should think of using Win32::Process to run the child with the messagebox in a completely independent process. You can use They didn't give me a fork so I have to eat with a spawn. as sample code for the setup.
You may have to add extra code to resynchronize parent and child after both have finished with their respective tasks, but there's a lot of methods available in Win32::Process to that effect for use in the parent, most notably Wait; so the parent will not go on beyond your loop before the button on the messagebox is pushed.
|
|---|