From: Kevin Day Date: Mon, 26 Dec 2022 13:58:48 +0000 (-0600) Subject: Bugfix: The signal is not properly closing. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=3a5a4e73f16b0285e9cfb436481835e192896ef8;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 155ac83..bc91470 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; }