in reply to Writing to flock files in a daemon
I'm guessing that you have a buffering problem. There can be a substantial delay between when the script "writes" into the file, and the next event that can cause I/O buffers to be flushed. Consult your favorite reference for instructions on unbuffering (hint: it'll invole the single argument form of select() ).
You're also openning the lock file in "append" mode. Better to just truncate and rewrite.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Writing to flock files in a daemon
by graq (Curate) on Mar 07, 2002 at 16:11 UTC | |
by bluto (Curate) on Mar 07, 2002 at 17:36 UTC |