Replaced some thread un-safe functions with their safe counterparts

This commit is contained in:
2014-08-06 22:29:28 +01:00
parent a998a32f31
commit 40c29b190b
8 changed files with 25 additions and 13 deletions

View File

@@ -71,7 +71,9 @@ void*log_loop(void* arg) {
if (l->running == false) {
break;
}
fprintf(stderr, "log[%s] read failed: %s. logger aborted\n", l->name, strerror(errno));
char errnostr[64];
strerror_r(errno, errnostr, 64);
fprintf(stderr, "log[%s] read failed: %s. logger aborted\n", l->name, errnostr);
log_stop(l);
break;
}