[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] suggestion for next version....
> FORK: {
> if ($pid = fork) {
> # continue parent process
> # pid of child process is in $pid
> } elsif (defined $pid) {
> exec "fetchnews -vv"
> # not reached
> } elsif ($! =~ /No more process/) {
> # EAGAIN, supposedly recoverable fork error
> sleep 5;
> redo FORK;
> } else {
> # weird fork error
> die "Can't fork: $!\n"
> }
> }
>
> (Disclaimer: I have not tried this.)
>
> --Cornelius.
Thanks! :)
-Russ
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list