Am 03.06.2015 um 00:03 schrieb Paolo Bevilacqua:
> I just began using Rivet latest version but I can't write reliably to a
> log file. The file gets corrupted, only pieces of intended output
> appears in it at random, as if is where a race condition.
> 
> This is my GlobalInitScript: set log [open /var/www/html/test-dialer-log
> a+]
> 
> fconfigure $log -buffering none -blocking true
> 
> 
> And my script, reduced to one line: puts $log "uri [::rivet::env
> REQUEST_URI]"
> 
> If I use ::rivet::apache_log_error instead of puts, it works perfectly.
> 
> Puzzled. Thanks for any help.
> 
> <i>Always striving to honor my word and commitments</i>
> 
> 

Dear Paolo,

I suppose you are again facing the fact, that you have multiple
processes writing on the same file. You should include, for example, the
PID in the file name to be save.

Hope this helps,
Harald

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to