From: Kevin Day Date: Sat, 18 Feb 2023 03:02:31 +0000 (-0600) Subject: Update: Print message rather than an error when termination signal is received. X-Git-Tag: 0.6.4~46 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=554c903208ceab0b6e0624d132f92a108aaae033;p=fll Update: Print message rather than an error when termination signal is received. --- diff --git a/level_3/fake/c/fake.c b/level_3/fake/c/fake.c index 093e88b..f848381 100644 --- a/level_3/fake/c/fake.c +++ b/level_3/fake/c/fake.c @@ -477,7 +477,15 @@ extern "C" { } if (F_status_is_error(status)) { - if (main->error.verbosity != f_console_verbosity_quiet_e) { + if (F_status_set_fine(status) == F_interrupt) { + flockfile(main->output.to.stream); + + fl_print_format("%rThe operation '%[%r%]", main->output.to.stream, f_string_eol_s, main->output.notable, operations_name, main->output.notable); + fl_print_format("' is cancelled.%r", main->output.to.stream, f_string_eol_s); + + funlockfile(main->output.to.stream); + } + else if (main->error.verbosity != f_console_verbosity_quiet_e) { flockfile(main->error.to.stream); fl_print_format("%r%[%QThe operation '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context);