mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Logs when a SIGINT is received.
This commit is contained in:
parent
2652438f6d
commit
fb7ef9ec29
1 changed files with 4 additions and 0 deletions
|
|
@ -4254,6 +4254,8 @@ int state_progress_begin(struct snapraid_state* state, block_off_t blockstart, b
|
|||
if (!state->opt.gui) {
|
||||
printf("Not starting for interruption\n");
|
||||
}
|
||||
fprintf(stdlog, "sigint:0: SIGINT received\n");
|
||||
fflush(stdlog);
|
||||
return 0;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
|
@ -4366,6 +4368,8 @@ int state_progress(struct snapraid_state* state, block_off_t blockpos, block_off
|
|||
printf("\n");
|
||||
printf("Stopping for interruption at block %u\n", blockpos);
|
||||
}
|
||||
fprintf(stdlog, "sigint:%u: SIGINT received\n", blockpos);
|
||||
fflush(stdlog);
|
||||
return 1;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue