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 LOGFILE RC_SVCDIR "/rc.log"
|
||||||
#define PERMLOG "/var/log/rc.log"
|
#define PERMLOG "/var/log/rc.log"
|
||||||
#define MOVELOG "mv " LOGFILE " " PERMLOG ".$$.tmp && cat " PERMLOG \
|
#define MOVELOG "cat " LOGFILE " 2>/dev/null >>" PERMLOG " && " \
|
||||||
".$$.tmp >>" PERMLOG " 2>/dev/null && rm -f " PERMLOG ".$$.tmp"
|
"rm -f " LOGFILE
|
||||||
|
|
||||||
static int signal_pipe[2] = { -1, -1 };
|
static int signal_pipe[2] = { -1, -1 };
|
||||||
static int fd_stdout = -1;
|
static int fd_stdout = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user