Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: forking, waiting, and killing child pids

by Eliya (Vicar)
on Apr 11, 2012 at 21:12 UTC ( [id://964628]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    19529  2360 19529  2360  \_ /usr/bin/perl -w ./964597.pl
    19534 19529 19529  2360      \_ ps Tf -o pid,ppid,pgrp,sid,cmd
    19533     1 19530  2360 sleep 20
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
     2360  2358  2360  2360 bash -rcfile .bashrc
    19537  2360 19537  2360  \_ /usr/bin/perl -w ./964597.pl
    19542 19537 19537  2360      \_ ps Tf -o pid,ppid,pgrp,sid,cmd
    
  3. or download this
         printf "child%s alive\n", kill(0, $snoop) ? "":" not";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://964628]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found