diff options
author | Roy Marples <roy@marples.name> | 2008-02-20 14:30:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-20 14:30:23 +0000 |
commit | 5e523ff33e97ee3866bc87ae675d73700dcd81a0 (patch) | |
tree | 06e7e353dde07fa6566b4acbfa3d9bfe0787ffc0 | |
parent | 95a7985ea3acb886ea0b9861bf88abc5627a3cfd (diff) |
Move logfile without a visible error, bug #28
-rw-r--r-- | src/rc/rc-logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |