]> Kevux Git Server - fll/commitdiff
Bugfix: f_signal_close() should be setting signal id to -1 and not 0.
authorKevin Day <Kevin@kevux.org>
Thu, 23 Jan 2025 04:46:54 +0000 (22:46 -0600)
committerKevin Day <Kevin@kevux.org>
Thu, 23 Jan 2025 04:46:54 +0000 (22:46 -0600)
The signal id is a file descriptor and a non-valid file descriptor is -1 instead of 0.

level_0/f_signal/c/signal.c
level_0/f_signal/c/signal.h

index fa1e4c8..28a0702 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
       return F_status_set_error(F_failure);
     }
 
-    signal->id = 0;
+    signal->id = -1;
 
     return F_okay;
   }
index 8625652..40b8f42 100644 (file)
@@ -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.