From 4dfc152aad390be408cb9a20578b337b2a13d993 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 26 Dec 2022 07:58:48 -0600 Subject: [PATCH] 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. --- level_0/f_signal/c/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.8.3.1