freebsd-dev/usr.sbin/daemon
Ihor Antonov 298a392ec3 daemon: move variables into struct daemon_state
The fact that most of the daemon's state is stored on the stack
of the main() makes it hard to split the logic smaller chunks.
Which in turn leads to huge main func that does a a lot of things.
struct log_params existed because some variables need to be passed
into other functions together.

This change renames struct log_params into daemon_state
and moves the rest of the variables into it. This is a necessary
preparation step for further refactroing.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/687
2023-03-12 10:57:41 -06:00
..
tests daemon: add some basic tests 2021-05-03 09:55:40 -06:00
daemon.8 daemon: add long_opts 2023-02-09 22:36:07 -06:00
daemon.c daemon: move variables into struct daemon_state 2023-03-12 10:57:41 -06:00
Makefile daemon: add some basic tests 2021-05-03 09:55:40 -06:00
Makefile.depend