From: Kevin Day Date: Mon, 26 Dec 2022 13:58:48 +0000 (-0600) Subject: Bugfix: The signal is not properly closing. X-Git-Tag: 0.6.3~51 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=4dfc152aad390be408cb9a20578b337b2a13d993;p=fll Bugfix: The signal is not properly closing. The signal id is a file descriptor. File descriptors are unset when at -1 rather than 0. The not zero check is therefore invalid. Replace that check with a check against negative one. --- diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index 06d9e76..acfdde2 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -27,7 +27,7 @@ extern "C" { if (!signal) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!signal->id) { + if (signal->id == -1) { return F_data_not; }