syslog_r for Linux?

后端 未结 1 1770
無奈伤痛
無奈伤痛 2020-12-31 10:57

Folks, I can\'t find the re-entrant version of syslog() for Linux...is there one? And if no, what do you? The obvious answer is to move logging facility into separate thread

相关标签:
1条回答
  • 2020-12-31 11:16

    According to the POSIX specification, the syslog function is already thread-safe, and so implemented in Linux. So syslog_r is unnecessary - use syslog if you need a reentrant logger function.

    0 讨论(0)
提交回复
热议问题