chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Syslog string protection error


From: Vok Vojwo
Subject: Re: [Chicken-users] Syslog string protection error
Date: Thu, 8 Dec 2011 10:49:04 +0100

The code of the syslog egg uses

    syslog(prio,\"%s\",msg);

to send the message. On Linux the above code is about 30% slower than this:

    syslog(prio, msg);

Some time ago I did a performance test:
http://superuser.com/questions/305029/why-is-syslog-so-much-slower-than-file-io

And on Linux the manual page for openlog says that the use of openlog
is optional. But when I omit the call to openlog in Scheme nothing
gets send to syslog. I think this difference should be mentioned in
the documentation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]