All pastes #113513 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-03 16:56 UTC
rendered paste body
        unless(my $pid = fork()) {
                setsid;
                exit if $pid;
                unless(my $otherpid = fork()) {
                exit if $otherpid;
#               setsid;
                open(INFILE, "tail -n 0 -f $log |") || die "Couldn't open file $!";
                while(1) {
                        while (<INFILE>) {
 
                        }
                }
        }
}
}