http://www.perlmonks.org?node_id=897893


in reply to Reaped: Re^5: file lock error
in thread file lock error

thanks for the extra help! We got it working. I put an unlock and a sleep 1 in:
_mailme($opaddr, $badsubject, $runlog); sleep 1; flock($RLOG, LOCK_UN); _logroll($runlog);