]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/executor: do destruct static variables and selinux before exiting
authorMike Yuan <me@yhndnzj.com>
Fri, 8 Dec 2023 16:06:16 +0000 (00:06 +0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 Dec 2023 05:13:35 +0000 (14:13 +0900)
commitba8245a77a074bf65db79a60d2b6e390d76ebde3
tree1de5c96307191d4029c77484aaf98d79f502305f
parentf1e89cb9b1da4117f2dbe1d35b30cad169659c12
core/executor: do destruct static variables and selinux before exiting

I was wondering why I couldn't trigger the assertion in safe_fclose()
when submitting #30251. It turned out that the static destructor was
not run at all :/

Replace main() with a minimized version of main-func.h. This also
prevents emitting negative exit codes.
src/core/executor.c