reaction/src
ppom 915e308015
Better plugin process management
following stderr: task doesn't use shutdown anymore. It will simply follow
stderr until the end of reaction, which at worst is a negligible
memory leak if reaction continues running.
I tried closing stderr on the plugin side with a raw syscall of the file
descriptor, but reaction side doesn't see that stderr is closed.
So I can't rely on that.
Quitting when shutdown.wait() returns is too early, because that's also
what makes reaction asking for the plugin to close(), and it can print
important logs during its shutdown.
The task ignoring all the shutdown part is dead simple and is most likely
correct everytime.

updated the wording of plugin-related errors.

also replaced futures::select! { future, sleep() } with more concise and
macro-less tokio::timeout.
2026-02-09 12:00:00 +01:00
..
client Refacto: make all Config structures' fields public 2025-08-04 12:00:00 +02:00
concepts Fix project not compiling on BSD & Solaris systems 2026-02-09 11:03:00 +01:00
daemon Better plugin process management 2026-02-09 12:00:00 +01:00
cli.rs Fix trigger command 2025-06-24 12:00:00 +02:00
lib.rs Separate treedb into its own crate 2025-12-14 12:00:00 +01:00
main.rs fmt, clippy, tests, fix some tests after startup refacto 2025-12-07 12:00:00 +01:00
protocol.rs WIP trigger command 2025-06-23 12:00:00 +02:00
tests.rs Separate treedb into its own crate 2025-12-14 12:00:00 +01:00