]> Kevux Git Server - fll/commit
Bugfix: The signal is not properly closing.
authorKevin Day <thekevinday@gmail.com>
Mon, 26 Dec 2022 13:58:48 +0000 (07:58 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 26 Dec 2022 17:20:21 +0000 (11:20 -0600)
commit3a5a4e73f16b0285e9cfb436481835e192896ef8
tree72822463e6cd41589906c9981c50b09a16b58112
parentb2a0469394af080573e168b4f750263e3959e7e5
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