]> Kevux Git Server - fll/commit
Update: generalize the pid file creation and deletion.
authorKevin Day <thekevinday@gmail.com>
Sat, 17 Apr 2021 20:27:05 +0000 (15:27 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 17 Apr 2021 21:05:38 +0000 (16:05 -0500)
commit3ec257aecac98c57132a29a42223624e24d6f9cb
tree89b882d16303a03d161bec1b79f15e127fc0c8d3
parent10fb7ea5943d8172ff0f4ed8a325f33babc64845
Update: generalize the pid file creation and deletion.

The PID create and delete functions were written as intended specifically for the main controller program.

PID files are to be used by services and utilities, therefore the PID create and delete functions should also be used there.

Detect if the main PID file is created and then only attempt to delete it on exit (and then do not do so for child processes).
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