]> Kevux Git Server - fll/commit
Progress: controller program, implementing failsafe.
authorKevin Day <thekevinday@gmail.com>
Tue, 13 Apr 2021 03:18:47 +0000 (22:18 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 13 Apr 2021 03:30:41 +0000 (22:30 -0500)
commitad5e575c1d771ca94501398e7fcb142a26a3538c
tree20f49a543c5fb9cb5acfd7fb7d67455029fe1129
parentcff621b5e1e0a7e8dfe852c0d3f1c12e183a0dd8
Progress: controller program, implementing failsafe.

Minor code cleanup:
- Removing no longer valid documentation.
- Cleaning up syntax, such as spacing.
- Updating documentation comments.
- Pass controller_main_t as a pointer in the entry function, updating all uses.
- Remove @fixme for considering status handling because I don't plan on bothering with this now.

A lot of the controller_print_unlock_flush() calls are using the incorrect stream.

Use status_lock as a return in cases where the status that is retuned shouldn't become lost when processing the locks.
Otherwise, the errors may never properly bubble to the parent and therefore may never trigger the failsafe.

The failsafe is not a rule id, but instead an item id.

If and when failsafe support is enabled, trigger it.
The currently implemented code only handles synchronous failures.

Begin work with adding a "failed" flag so that asynchronous, but required, failures can be detected for the purposes of failsafe execution.
level_3/controller/c/controller.c
level_3/controller/c/private-common.c
level_3/controller/c/private-common.h
level_3/controller/c/private-controller.c
level_3/controller/c/private-controller.h
level_3/controller/c/private-entry.c
level_3/controller/c/private-rule.c
level_3/controller/c/private-thread.c
level_3/controller/data/settings/example/entries/test.entry
level_3/controller/data/settings/example/rules/script/fail.rule