add session handling
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 5 Jan 2022 15:38:15 +0000 (16:38 +0100)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 5 Jan 2022 15:42:16 +0000 (16:42 +0100)
commit478afd5eb545d5ae0ecbfc2c9f216111f559fefe
tree259be606d0aa7de263e98933e6f36de81218acce
parent4b497d721ebe04fc39e6df337600509542bcbfe0
add session handling

The ``daemonize()`` API does not establish a new session so
processes that use it end up being controlled by the tty of the
process they were launched under, which too often happens to be
some system console.
src/daemonfunc.cpp
src/daemonfunc.hpp