for bug-searching:

set frontend type before starting the thread. This means that the thread type will be output correctly in the error message.

return errno string of pthread functions called in thread start
This commit is contained in:
Bernhard Amann 2012-06-25 14:54:15 -07:00
parent c3b9a2a29c
commit c7338a0731
3 changed files with 14 additions and 9 deletions

View file

@ -191,10 +191,10 @@ WriterBackend* Manager::CreateBackend(WriterFrontend* frontend, bro_int_t type)
assert(ld->factory);
frontend->ty_name = ld->name;
WriterBackend* backend = (*ld->factory)(frontend);
assert(backend);
frontend->ty_name = ld->name;
return backend;
}