Help for this page

Select Code to Download


  1. or download this
    if ($pid=fork() ) {
        select(undef,undef,undef,.1);
            open (STDOUT, ">test.txt");
    ...
    } else {
        print "child\n";
    }
    
  2. or download this
    if ($pid=fork() ) {
        #select(undef,undef,undef,.1);
        print "parent\n";
    ...
        open (STDOUT, ">test.txt");
        system("echo child");
    }