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.
In reply to Re: Exclusive open for append
by Perl Mouse
in thread Exclusive open for append
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |