Keep log open, rotate it just like the journal:
(logfd, logopen): New. (loginit): Set logfd, return success. (logerror): Use logfd. (logreopen): New. (relo, main): Use it.
This commit is contained in:
parent
88b44bffd3
commit
9c94a23709
4 changed files with 45 additions and 11 deletions
|
@ -283,6 +283,7 @@ main(int argc, char **argv)
|
|||
/* if you make changes here, also update relo() */
|
||||
journal_reopen();
|
||||
update_reschedule();
|
||||
logreopen();
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue