projects
/
fll
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
767c244
)
Bugfix: The signal is not properly closing.
author
Kevin Day
<thekevinday@gmail.com>
Mon, 26 Dec 2022 13:58:48 +0000
(07:58 -0600)
committer
Kevin Day
<thekevinday@gmail.com>
Mon, 26 Dec 2022 14:02:52 +0000
(08:02 -0600)
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
patch
|
blob
|
history
diff --git
a/level_0/f_signal/c/signal.c
b/level_0/f_signal/c/signal.c
index 06d9e767c7300a28549c2f154ab273386f5a6fb5..acfdde2fe5c1a5ae3d2450eabf02bcedfed961e5 100644
(file)
--- 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;
}