mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
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:
parent
c3b9a2a29c
commit
c7338a0731
3 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue