shutdown: remove pid file last

pull/2524/head
Victor Julien 9 years ago
parent 816dd7b301
commit 7ca466c598

@ -358,8 +358,6 @@ void GlobalsDestroy(SCInstance *suri)
#endif #endif
#endif #endif
SCPidfileRemove(suri->pid_filename);
AppLayerHtpPrintStats(); AppLayerHtpPrintStats();
/* TODO this can do into it's own func */ /* TODO this can do into it's own func */
@ -414,6 +412,8 @@ void GlobalsDestroy(SCInstance *suri)
#endif #endif
SCLogDeInitLogModule(); SCLogDeInitLogModule();
DetectParseFreeRegexes(); DetectParseFreeRegexes();
SCPidfileRemove(suri->pid_filename);
} }
/** \brief make sure threads can stop the engine by calling this /** \brief make sure threads can stop the engine by calling this

Loading…
Cancel
Save