in reply to Writing to a log file without colliding
What you're looking for is flock. Take a look at how merlyn implements a hit counter CGI script to see how to safely employ it.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing to a log file without colliding
by cgraf (Beadle) on Aug 17, 2004 at 10:22 UTC | |
by Aristotle (Chancellor) on Aug 17, 2004 at 10:26 UTC | |
by dave_the_m (Monsignor) on Aug 17, 2004 at 11:29 UTC | |
by Aristotle (Chancellor) on Aug 17, 2004 at 11:51 UTC | |
by dave_the_m (Monsignor) on Aug 17, 2004 at 12:52 UTC | |
| |
by BrowserUk (Patriarch) on Aug 17, 2004 at 13:01 UTC | |
by tye (Sage) on Aug 17, 2004 at 13:38 UTC | |
| |
by ikegami (Patriarch) on Aug 17, 2004 at 14:37 UTC |