]> sourceware.org Git - lvm2.git/commit
daemonize: more unified code
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Aug 2017 09:55:38 +0000 (11:55 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Aug 2017 12:20:57 +0000 (14:20 +0200)
commitb3b1e788e16c77f6784f30b8e984f68792f8fa1a
treec878f262bd6d5921373d6e83747947e247283a68
parent5de944420224f3b629e843f9c190132ed9ff3dca
daemonize: more unified code

ATM we have several instances of daemonizing code.
Each has its 'special' logic so not completely easy
to unify them all into a single routine.

Start to unify them and use one strategy for rediricting
all input/outpus to /dev/null - use 'dup2' function for this
and open /dev/null before fork to make sure it's available.
daemons/clvmd/clvmd.c
libdaemon/server/daemon-server.c
This page took 0.036961 seconds and 5 git commands to generate.