Remove signal_val declaration from Var.h

This commit is contained in:
Jon Siwek 2020-05-13 11:43:36 -07:00
parent 3bcf55ce41
commit c509149c86
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ extern "C" {
#include "Sessions.h" #include "Sessions.h"
#include "Event.h" #include "Event.h"
#include "Timer.h" #include "Timer.h"
#include "Var.h" #include "ID.h"
#include "Reporter.h" #include "Reporter.h"
#include "Scope.h" #include "Scope.h"
#include "Anon.h" #include "Anon.h"
@ -331,6 +331,8 @@ void net_run()
current_dispatched = 0; current_dispatched = 0;
current_iosrc = nullptr; current_iosrc = nullptr;
extern int signal_val;
if ( signal_val == SIGTERM || signal_val == SIGINT ) if ( signal_val == SIGTERM || signal_val == SIGINT )
// We received a signal while processing the // We received a signal while processing the
// current packet and its related events. // current packet and its related events.

View file

@ -67,5 +67,3 @@ extern BroType* internal_type(const char* name);
extern Func* internal_func(const char* name); extern Func* internal_func(const char* name);
extern EventHandlerPtr internal_handler(const char* name); extern EventHandlerPtr internal_handler(const char* name);
extern int signal_val; // 0 if no signal pending