(run_hook): Add fflush(NULL) to flush the stdio files before
starting the backup.
This commit is contained in:
parent
9227a314c5
commit
6245ed4b73
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue