in reply to Mysterious Disapperance of file contents
Consider the following sequence of events:
During the source of the die(), files are closed, and locks are released. Because you opened the semaphore file for writing, but haven't yet written to it, it's just been erased.open(SEM, ">$semaphore_file") -- succeeds flock(SEM, LOCK_EX) -- succeeds open(MFILE, ">>$completeadd") -- fails die(...)
This may or may not be what's happening, but it's one possible explanation.
Are you seeing any errors in your error logs?
Update: Ignore everything above "Are you seeing any errors in your error logs?".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re2: Mysterious Disapperance of file contents
by bbfu (Curate) on Aug 29, 2003 at 05:02 UTC |