Using Win32::Process::Create with multiple child processes.
- From: smudgef1@xxxxxxxxx
- Date: 30 Aug 2005 18:03:45 -0700
Hello,
I'm using Win32::Process::Create to run another program, and then I do
$proc->Wait(INFINITE) to wait for this program to exit. The problem is
the created process immediatly forks another process, and terminates,
and my perl program continues. Is it possible to wait for all the
children to finish executing before continuing?
In case my description wasn't clear, here is a chronology of the
problem.
Perl program A, creates process B;
Perl program A waits for process B to terminate;
Process B forks Process C; (probably similiar to an exec in perl)
Process B terminates;
Process A continues (but I want it to wait on Process C too!);
BTW, process B and C are commerical applications that I don't have the
source for, so I can't modify those.
Thanks!
.
- Follow-Ups:
- Prev by Date: Re: problem about the perl code. thanks for any comments
- Next by Date: Re: problem about the perl code. thanks for any comments
- Previous by thread: Perl match problem
- Next by thread: Re: Using Win32::Process::Create with multiple child processes.
- Index(es):
Relevant Pages
|