#!/usr/bin/perl use warnings; use strict; use Proc::ProcessTable; $SIG{CHLD} = 'IGNORE'; for(1..5){ sleep(10) and exit if(fork == 0); } for my $p (@{new Proc::ProcessTable->table}){ print $p->pid," child of $$\n" if($p->ppid == $$); }
In reply to Re: Working With Processes and Their children
by zentara
in thread Working With Processes and Their children
by ketema
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |