Open michaelortmann opened 2 weeks ago
Found by: thommey and michaelortmann Patch by: michaelortmann Fixes:
One-line summary: Fix locking / race for tdns error logging
Additional description (if needed): Non main threads like tdns must use strerror_r() instead of strerror().
strerror_r()
strerror()
Test cases demonstrating functionality (if applicable):
valgrind --tool=helgrind ./eggdrop -nt BotA.conf [...] .tcl dnslookup google.de foo
Without this patch applied, valgrind will report race
Found by: thommey and michaelortmann Patch by: michaelortmann Fixes:
One-line summary: Fix locking / race for tdns error logging
Additional description (if needed): Non main threads like tdns must use
strerror_r()
instead ofstrerror()
.Test cases demonstrating functionality (if applicable):
Without this patch applied, valgrind will report race