From ff018d4b43d1179ecedf5cd2a498a97a16ef22a9 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 28 Sep 2009 18:38:07 +0200 Subject: [PATCH] Strange fix for issue where signals seemed to be ignored in some cases. --- src/eidps.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/eidps.c b/src/eidps.c index b59df1a930..94681f32fe 100644 --- a/src/eidps.c +++ b/src/eidps.c @@ -555,8 +555,12 @@ int main(int argc, char **argv) SCLogInfo("all packets processed by threads, stopping engine"); } - if (sigflags & EIDPS_SIGHUP) SCLogInfo("SIGHUP received"); - if (sigflags & EIDPS_SIGTERM) SCLogInfo("SIGTERM received"); + if (sigflags & EIDPS_SIGHUP) { + SCLogInfo("SIGHUP received"); + } + if (sigflags & EIDPS_SIGTERM) { + SCLogInfo("SIGTERM received"); + } struct timeval end_time; memset(&end_time, 0, sizeof(end_time));