(run_hook): Add fflush(NULL) to flush the stdio files before

starting the backup.
This commit is contained in:
Ron Koenderink 2005-03-15 18:23:21 +00:00
parent 9227a314c5
commit 6245ed4b73

View file

@ -151,7 +151,11 @@ update_wait(void *unused)
static int static int
run_hook(char *cmd, char *name) run_hook(char *cmd, char *name)
{ {
int status = system(cmd); int status;
fflush(NULL);
status = system(cmd);
if (status == 0) if (status == 0)
; /* successful exit */ ; /* successful exit */
else if (status == -1) else if (status == -1)