There are areas in the code where the signal is being checked without utilizing the counter.
if (F_status_is_error(*status)) return;
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return;
+ return;
+ }
}
// Strip the build settings name from the build arguments to generate a list of modes.
if (F_status_is_error(*status) && buffer.used) return;
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return;
+ return;
+ }
}
bool error_printed = F_false;
if (F_status_is_error(*status)) return;
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return;
+ return;
+ }
}
const f_string_static_t names[] = {
if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return;
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return;
+ return;
+ }
}
f_directory_statuss_t failures = f_directory_statuss_t_initialize;
for (f_array_length_t i = 0; i < files.used; ++i) {
- if (!(i % fake_signal_check_short_d)) {
+ if (!((++data->main->signal_check) % fake_signal_check_short_d)) {
if (fll_program_standard_signal_received(data->main)) {
fake_print_signal_received(data);
f_string_dynamics_resize(0, &arguments);
- if (fll_program_standard_signal_received(data->main)) {
+ if (!((++data->main->signal_check) % fake_signal_check_d) && fll_program_standard_signal_received(data->main)) {
fake_print_signal_received(data);
*status = F_status_set_error(F_interrupt);
#ifndef _di_fake_build_operate_
f_status_t fake_build_operate(fake_data_t * const data, const f_string_statics_t * const build_arguments, const bool process_pipe) {
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- return F_status_set_error(F_interrupt);
+ return F_status_set_error(F_interrupt);
+ }
}
f_status_t status = F_none;
if (F_status_is_error(*status)) return;
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return;
+ return;
+ }
}
f_mode_t mode = f_mode_t_initialize;
*status = fll_execute_program(program, arguments, ¶meter, 0, (void *) &return_code);
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- *status = F_status_set_error(F_interrupt);
+ *status = F_status_set_error(F_interrupt);
- return 0;
+ return 0;
+ }
}
if (*status == F_child) return return_code;
#ifndef _di_fake_file_buffer_
f_status_t fake_file_buffer(fake_data_t * const data, const f_string_static_t path_file, const bool required, f_string_dynamic_t * const buffer) {
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- return F_status_set_error(F_interrupt);
+ return F_status_set_error(F_interrupt);
+ }
}
f_file_t file = f_file_t_initialize;
clearerr(F_type_input_d);
do {
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- return F_status_set_error(F_interrupt);
+ return F_status_set_error(F_interrupt);
+ }
}
status = f_file_stream_read_block(file, buffer);
#ifndef _di_fake_validate_parameter_paths_
f_status_t fake_validate_parameter_paths(fake_data_t * const data) {
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- return F_status_set_error(F_interrupt);
+ return F_status_set_error(F_interrupt);
+ }
}
const f_string_static_t names[] = {
#ifndef _di_fake_make_operate_
f_status_t fake_make_operate(fake_data_t * const data) {
- if (fll_program_standard_signal_received(data->main)) {
- fake_print_signal_received(data);
+ if (!((++data->main->signal_check) % fake_signal_check_d)) {
+ if (fll_program_standard_signal_received(data->main)) {
+ fake_print_signal_received(data);
- return F_status_set_error(F_interrupt);
+ return F_status_set_error(F_interrupt);
+ }
}
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {