Fix server not to create a journal on SIGHUP when !keep_journal:

(journal_reopen): New.
(main): Use it.  Fixes failure to obey !keep_journal.
(journal_open): Internal linkage, changed semantics and return value.
Callers changed.
(journal_close): One caller left, inline and remove.
This commit is contained in:
Markus Armbruster 2007-01-21 17:34:22 +00:00
parent 139086fd20
commit befac7cf83
3 changed files with 30 additions and 21 deletions

View file

@ -267,8 +267,7 @@ main(int argc, char **argv)
sig = empth_wait_for_signal();
#ifdef SIGHUP
if (sig == SIGHUP) {
journal_close();
journal_open();
journal_reopen();
continue;
}
#endif