my $pid = fork; exit if $pid; die "fork: $!" unless defined $pid; # or maybe just warn # continue processing