Help for this page

Select Code to Download


  1. or download this
    my $PID = fork();
    if ($PID) {
    ...
    else {
        # in the child process
    }
    
  2. or download this
    my $PID = fork();
    if ($PID) {
    ...
        # process, depending on whether the fork()
        # succeeded or failed.
    }