On Mon, 2022-02-14 at 22:04 +0100, Daniel Lezcano wrote:
This change provides a simple daemon skeleton. It provides an exampleFrom the code, doesn't seam to have a function to daemonize.
of how to use the thermal library.
The goal of this skeleton is to give a base brick for anyone
interested in writing its own thermal engine.
In the future, it will evolve with more features.
So may be not call a daemon if that is true. mainloop() is just an
infinite loop polling netlink messages.
Also thermald will confuse with the standard thermald distributed with
every distro. May be thermal_control_sample as this a sample for future
development.
Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
tools/thermal/thermald/thermald.c | 275
+ if (!(options.logopt & TO_STDOUT) && daemon(0, 0))
+ return 1;