(ef_open_srv, start_server): Journal must not be written before

empth_init(), because writing calls empth_self().  Move call of
journal_startup().
(ef_close_srv, finish_server, panic): Move call of journal_shutdown()
for symmetry.
This commit is contained in:
Markus Armbruster 2007-01-21 17:58:01 +00:00
parent befac7cf83
commit d62355e76d
3 changed files with 6 additions and 3 deletions

View file

@ -36,6 +36,7 @@
#include <signal.h>
#include <unistd.h>
#include "empthread.h"
#include "journal.h"
#include "prototypes.h"
static void panic(int sig);
@ -80,6 +81,7 @@ panic(int sig)
logerror("server received fatal signal %d", sig);
log_last_commands();
ef_fin_srv();
journal_shutdown();
/* End of unsafe code */
if (CANT_HAPPEN(sig != SIGBUS && sig != SIGSEGV