mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
In threads, an internal error now immediately aborts.
Otherwise, the error won't make it back to the main thread for a while and subsequent code in the thread would still execute.
This commit is contained in:
parent
891c532775
commit
08593c5147
1 changed files with 3 additions and 1 deletions
|
@ -222,7 +222,9 @@ void MsgThread::InternalWarning(const char* msg)
|
|||
|
||||
void MsgThread::InternalError(const char* msg)
|
||||
{
|
||||
SendOut(new ReporterMessage(ReporterMessage::INTERNAL_ERROR, this, msg));
|
||||
// This one aborts immediately.
|
||||
fprintf(stderr, "internal error in thread: %s\n", msg);
|
||||
abort();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue