in reply to File locking with semaphores
That cleared up some errors that I was getting. And what jasonk suggested cleared up the ambiguous opens. I am still getting the following errors:sub unlock{ my $self=shift; my $FH=*{$$self{SEMAPHORE}}; if(-e $SEM){ flock($FH,LOCK_UN); close $FH; unlink $SEM; } }
Use of uninitialized value in ref-to-glob cast at /opt/perl5/lib/site_ +perl/5.6.0 /Logger/Simple.pm line 85. Use of uninitialized value in ref-to-glob cast at /opt/perl5/lib/site_ +perl/5.6.0 /Logger/Simple.pm line 98.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File locking with semaphores
by runrig (Abbot) on Mar 07, 2003 at 20:26 UTC |