Are gnu syslog(), openlog() and closelog() thread-safe?

Konoha picture Konoha · Dec 18, 2013 · Viewed 7.1k times · Source

I have been searching for some time and haven't found a definitive answer yet. The only link I found till now which sheds some light on this is here.

Answer

alvits picture alvits · Dec 18, 2013

According to the POSIX Specification syslog(), openlog() and closelog() are thread safe.

There's another thread that answers this question as well and it is dated as far back as 2009. Here's the link syslog_r for Linux?.