Help for this page

Select Code to Download


  1. or download this
    my $pid = fork() // die "fork: $!";
    if( $pid ){
    ...
        print "implicitly waiting for child...\n";
        # close($xx);
    }
    
  2. or download this
    print "before spawn\n";
    spawn();
    ...
    before spawn
    implicitly waiting for child... # sleep...
    after spawn