S
smudgef1
Hello,
I'm using Win32:
rocess::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!
I'm using Win32:
$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!