]> Kevux Git Server - fll/commit
Bugfix: PID and PID file should account for multiples during process execution.
authorKevin Day <thekevinday@gmail.com>
Tue, 27 Apr 2021 23:49:35 +0000 (18:49 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 27 Apr 2021 23:49:35 +0000 (18:49 -0500)
commitd3ffd809385da9a9b576fc49cb5f19cd6eebd44f
tree4332ef15411d27d6479dfecb9faf594385bae181
parentef96a56f85fb7ff8181935fd7195893022451ca6
Bugfix: PID and PID file should account for multiples during process execution.

I forgot all about needing to do this so I am considering this a bug.

Each process may execute multiple Actions.
Each Action has its own PID.

In the case of foreground (synchronous) execution, having only a single PID and PID file path on the Process structure is not a problem.
When with PID file (asynchronous) execution operates, multiple PIDs (and respective PID files) may exist for any single Process structure.

Use an array of PIDs and PID file paths.
level_3/controller/c/private-common.c
level_3/controller/c/private-common.h
level_3/controller/c/private-rule.c
level_3/controller/c/private-thread.c
level_3/controller/data/settings/example/entries/utility.entry
level_3/controller/data/settings/example/rules/utility/sleeper_2.rule
level_3/controller/data/settings/example/rules/utility/sleeper_3.rule [new file with mode: 0644]