unless(fork()) { unless(fork()) { # exit if $pid; # setsid; open(INFILE, "tail -n 0 -f $log |") || die "Couldn't open file $!"; while(1) { while () { } } } } }