From: Kevin Day Date: Thu, 23 Jan 2025 04:46:54 +0000 (-0600) Subject: Bugfix: f_signal_close() should be setting signal id to -1 and not 0. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d5075a8a74272b59934676fe248161acaad6a470;p=fll Bugfix: f_signal_close() should be setting signal id to -1 and not 0. The signal id is a file descriptor and a non-valid file descriptor is -1 instead of 0. --- diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index fa1e4c8..28a0702 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -41,7 +41,7 @@ extern "C" { return F_status_set_error(F_failure); } - signal->id = 0; + signal->id = -1; return F_okay; } diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index 8625652..40b8f42 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -61,7 +61,7 @@ extern "C" { /** * Close an open signal descriptor. * - * The signal.id is set to 0 on success. + * The signal.id is set to -1 on success. * * @param signal * The signal settings.