]> 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:45:22 +0000 (22:45 -0600)
committerKevin Day <Kevin@kevux.org>
Thu, 23 Jan 2025 04:46:03 +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
level_0/f_signal/data/documentation/man/man3/f_signal_close.3

index acfdde2fe5c1a5ae3d2450eabf02bcedfed961e5..7c9525461740fc784fb51f5492a6fec1aeab8f46 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
       return F_status_set_error(F_failure);
     }
 
-    signal->id = 0;
+    signal->id = -1;
 
     return F_none;
   }
index c868866a324d77d1376b75acf6165adf976e0a4d..bb10c675412e97ede04c27af87bc44f18ac9d17f 100644 (file)
@@ -58,7 +58,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.
index 9025ec23902aeff00ec9f09e98639423f6f9d4ac..5be233fa1fdaac1041ca95231ac3db2d8eac906d 100644 (file)
@@ -13,7 +13,7 @@ f_signal_close
 .PP
 Close an open signal descriptor.
 .PP
-The signal.id is set to 0 on success.
+The signal.id is set to -1 on success.
 .SH PARAMETERS
 .TP
 .B signal