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

Loading…
Cancel
Save