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:
parent
139086fd20
commit
befac7cf83
3 changed files with 30 additions and 21 deletions
|
@ -34,15 +34,12 @@
|
|||
#ifndef JOURNAL_H
|
||||
#define JOURNAL_H
|
||||
|
||||
int journal_open(void);
|
||||
int journal_close(void);
|
||||
void journal_entry(char *fmt, ...);
|
||||
|
||||
int journal_startup(void);
|
||||
void journal_shutdown(void);
|
||||
int journal_reopen(void);
|
||||
void journal_login(void);
|
||||
void journal_logout(void);
|
||||
void journal_input(char *input);
|
||||
void journal_input(char *);
|
||||
void journal_update(int);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue