]> git.ipfire.org Git - thirdparty/systemd.git/commit
env-util: Add helper to store current log level
authorAdrian Vovk <adrianvovk@gmail.com>
Sat, 20 Jan 2024 00:46:07 +0000 (19:46 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2024 08:21:45 +0000 (09:21 +0100)
commit83b4576195da3167d78d5d7e13800c32799efca5
tree166e56c138f38fe65ecfd047911eb8b0875c7a72
parent2fe27f966fc1840f62f859e7f16a1cec68c5d6db
env-util: Add helper to store current log level

This is useful after a fork but before an exec into a binary that uses
systemd's logging utilities. For example, this should be used in dbus
services that fork off worker processes: currently, the log level set by
the LogControl dbus API will be lost because of the exec, and the worker
process will not have the correct log level set.
src/basic/env-util.c
src/basic/env-util.h