in reply to Question about flock and printing to file
As it says in the docs flock :-
locks are merely advisory
Exactly what happens will depend on the operating system you're on, what other process is trying to write to the file, and the exact timing of the writes.
IMHO flock just isn't worth using, it's almost entirely pointless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question about flock and printing to file
by afoken (Chancellor) on Jun 23, 2015 at 16:24 UTC | |
by AnomalousMonk (Archbishop) on Jun 23, 2015 at 17:19 UTC |