Move logfile without a visible error, bug #28

This commit is contained in:
Roy Marples 2008-02-20 14:30:23 +00:00
parent 95a7985ea3
commit 5e523ff33e

View File

@ -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;