in reply to File locking with semaphores
And another way to get rid of the open warning is with:my $FH=*{$$self{FILEHANDLE}};
Update: Ah, just noticed the package $SEM variable. Nevermind on the first issue...(though you are assuming that all logging processes are in the same current directory opening the same semaphore file, maybe there ought to be a semaphore directory argument, or default to the same directory as the logfile, or ???).$self->{FILEHANDLE}->open(">>$logfile") or ...
|
|---|