|
a/src/utils/debuglog.cpp |
|
b/src/utils/debuglog.cpp |
|
... |
|
... |
333 |
"thread private storage key (pthread_once)\n");
|
333 |
"thread private storage key (pthread_once)\n");
|
334 |
abort();
|
334 |
abort();
|
335 |
}
|
335 |
}
|
336 |
DebugLog *dbl;
|
336 |
DebugLog *dbl;
|
337 |
if (!(dbl = (DebugLog *)pthread_getspecific(dbl_key))) {
|
337 |
if (!(dbl = (DebugLog *)pthread_getspecific(dbl_key))) {
|
338 |
dbl = new DebugLog;
|
338 |
if ((dbl = new DebugLog) == 0) {
|
|
|
339 |
fprintf(stderr, "debuglog: new DebugLog returned 0! ");
|
|
|
340 |
abort();
|
|
|
341 |
}
|
|
|
342 |
|
339 |
dbl->setwriter(theWriter);
|
343 |
dbl->setwriter(theWriter);
|
340 |
initfiles();
|
344 |
initfiles();
|
341 |
status = pthread_setspecific(dbl_key, dbl);
|
345 |
status = pthread_setspecific(dbl_key, dbl);
|
342 |
if (status) {
|
346 |
if (status) {
|
343 |
fprintf(stderr, "debuglog: cant initialize pthread "
|
347 |
fprintf(stderr, "debuglog: cant initialize pthread "
|