]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
worker: migrate worker.id to string
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 23 Oct 2020 15:48:41 +0000 (17:48 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 27 Oct 2020 10:25:54 +0000 (11:25 +0100)
commit822e4342d518bdffbc16acac5c8579d1b58596ee
treeac7f61ec2acce3bd9871f9769e49fe3ba8b0ea9e
parent99e89bd69bb1f18453ebad19fe06e0612ce13161
worker: migrate worker.id to string

It now contains either content of SYSTEMD_INSTANCE environment variable
or stringified version of getpid() value.

Main motivation is that the old worker.id was broken on systemd,
i.e. the default installation.

Related: #631
daemon/bindings/worker.rst
daemon/main.c
daemon/worker.c
daemon/worker.h
doc/upgrading.rst