diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-03-24 17:18:12 +0100 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-03-24 17:18:12 +0100 |
| commit | d6fbe492d6dd7a1648134ef26ee22a83c5ad6365 (patch) | |
| tree | 8217cd5c0f57c3d13a4d8889213c10f89c88ef5a /debian/libumberlog-dev.install | |
| parent | edd3b75417caafeb1c6476c2958a970d8f799437 (diff) | |
Fix infinite recursion on FreeBSD.
On FreeBSD, syslog() calls vsyslog(), our own replacement version. So
when from syslog(), we call our vsyslog(), which calls the old
syslog(), that ends up calling our own vsyslog() again.
To work around this issue, use a thread-local static variable that
signals whether we're recursing, and if we are, then call the old
vsyslog from the new one, thus breaking the loop.
This makes the library function correctly on FreeBSD too.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'debian/libumberlog-dev.install')
0 files changed, 0 insertions, 0 deletions
