Front page | perl.beginners |
Postings from April 2002
Re: Process Tree
Thread Previous
|
Thread Next
From:
sharan
Date:
April 29, 2002 01:12
Subject:
Re: Process Tree
Message ID:
20020429075310.5417.qmail@onion.perl.org
Process is not created by fork, I am using, Proc::Background to create
process, which uses, either, Win32::Process for windows, It is transparent
to me, whether i run on linux or windows.
The kind of application what we are developing needs both windows and linux
support.
Why I need to kill explicitly the child processes?
-------------------------------------------------
Some system process, like, ping, tcpdump etc. if started by a parent perl
process,
when the parent is killed, they are not getting killed. Note when i call
Proc::Background and start a process, it gives me that process id.
My problem is along with this process, all the process started by it need to
be killed.
Could any body please help me on this. I am struct with this?
Thanks a lot in advance
Sharan hiremath.
"Felix Geerinckx" <felix_geerinckx@hotmail.com> wrote in message
news:Xns91FDAD7424642fge123@209.85.157.220...
> on Sat, 27 Apr 2002 13:20:47 GMT, Sharan wrote:
>
> > Is there any generic way to find the list of child ids? (common to
> > windows and Linux). Because, i want to kill explicitly all the child
> > procs before terminating parent.
>
> If you fork, you return the child's pid to the parent.
>
> See
> perldoc -f fork
> perldoc -f kill
>
> --
> felix
Thread Previous
|
Thread Next