develooper Front page | perl.beginners | Postings from April 2002

Re: Process Tree

Thread Previous | Thread Next
April 29, 2002 01:12
Re: Process Tree
Message ID:
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

Why I need to kill explicitly the child processes?

Some system process, like, ping, tcpdump etc. if started by a parent perl
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" <> wrote in message
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About