]> Kevux Git Server - fll/commit
Bugfix: Problems exposed by unit tests for f_signal.
authorKevin Day <thekevinday@gmail.com>
Wed, 8 Jun 2022 04:38:07 +0000 (23:38 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 8 Jun 2022 04:38:07 +0000 (23:38 -0500)
commit29f58815b63cd84523f4d4c5438da17dfc560959
tree48949e15c321aa5b9ec940a1eedd209fcc119123
parent31b790a5a3c95d1b6896392264f98a4aaf73ba69
Bugfix: Problems exposed by unit tests for f_signal.

Fix ordering of functions.
Compare using "== -1" rather than "< 0" because the POSIX standard says "-1" rather than "less than zero".

The f_signal_read() function has several problems:
- Should be passing a pointer rather than an array to poll().
- Needs to check data_poll.revents.
- Missing the parameter checking.
level_0/f_signal/c/signal.c
level_0/f_signal/c/signal.h
level_0/f_signal/c/signal/common.h
level_0/f_signal/data/build/settings