[Asterisk-Users] asterisk logger - urgent!!!
Kevin P. Fleming
kpfleming at digium.com
Sat Feb 11 08:38:34 MST 2006
Bob Goddard wrote:
> Using fopen/fputs to ONLY append to a file, is quite frankly, stupid.
> Change it to open/write and you will be able to trap via the write
> return code and errno.
Patches to fix bugs are most welcome. Given that these files are written
using fprintf (because they are using format strings and long lists of
arguments), using write will require allocating memory, building the
output there and then calling write(). Seems like an awful lot of work
to avoid a simple system administration failure.
More information about the asterisk-users
mailing list