mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Moving the ASCII writer over to use UNIX I/O rather than stdio.
This commit is contained in:
parent
f6b883bafc
commit
e90918aa50
4 changed files with 24 additions and 24 deletions
|
@ -87,18 +87,17 @@ const char* BasicThread::Strerror(int err)
|
|||
|
||||
void BasicThread::Start()
|
||||
{
|
||||
|
||||
if ( started )
|
||||
return;
|
||||
|
||||
started = true;
|
||||
|
||||
int err = pthread_create(&pthread, 0, BasicThread::launcher, this);
|
||||
if ( err != 0 )
|
||||
reporter->FatalError("Cannot create thread %s:%s", name.c_str(), Strerror(err));
|
||||
|
||||
DBG_LOG(DBG_THREADING, "Started thread %s", name.c_str());
|
||||
|
||||
started = true;
|
||||
|
||||
OnStart();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue