Move logfile without a visible error, bug #28
This commit is contained in:
parent
95a7985ea3
commit
5e523ff33e
@ -58,8 +58,8 @@
|
||||
|
||||
#define LOGFILE RC_SVCDIR "/rc.log"
|
||||
#define PERMLOG "/var/log/rc.log"
|
||||
#define MOVELOG "mv " LOGFILE " " PERMLOG ".$$.tmp && cat " PERMLOG \
|
||||
".$$.tmp >>" PERMLOG " 2>/dev/null && rm -f " PERMLOG ".$$.tmp"
|
||||
#define MOVELOG "cat " LOGFILE " 2>/dev/null >>" PERMLOG " && " \
|
||||
"rm -f " LOGFILE
|
||||
|
||||
static int signal_pipe[2] = { -1, -1 };
|
||||
static int fd_stdout = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user