From 5e523ff33e97ee3866bc87ae675d73700dcd81a0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 20 Feb 2008 14:30:23 +0000 Subject: Move logfile without a visible error, bug #28 --- src/rc/rc-logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index 0545f826..193aa8cb 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -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; -- cgit v1.2.3