[patch] Add logrotate support

Pete Zaitcev zaitcev at redhat.com
Mon Jul 11 19:55:33 UTC 2011


On Fri, 08 Jul 2011 14:59:56 +0200
Jim Meyering <jim at meyering.net> wrote:

> Note that we must not use strerror in a multi-threaded environment
> since it is not thread-safe []

How is strerror not thread-safe? It's one of those stupid things
that standards are made of. One silly man somewhere decided to
create these messages on the fly and store them in a static
buffer. Voila, now it's not thread-safe. But everyone else
has all these messages pre-loaded and just returns pointers
into these arrays.

-- Pete


More information about the iwhd-devel mailing list