in reply to Exclusive open for append
Both programs will have the file open for append. If both programs write to them, there's no garantee you end up with something that isn't garbage - some OSses will do a seek() before a write(), and a flush() after a write(), if your writes() are small enough, the messages won't be garbled.
If you want to have exclusive access, flock() your handles.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exclusive open for append
by tmoertel (Chaplain) on Nov 18, 2005 at 18:53 UTC |