]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
ulogd: Perform nice() before giving up root
authorChris Boot <bootc@bootc.net>
Sat, 11 May 2013 17:01:52 +0000 (18:01 +0100)
committerEric Leblond <eric@regit.org>
Tue, 21 May 2013 17:57:07 +0000 (19:57 +0200)
commit401c446ce73dfee19afb668a2761f335bcb91877
tree557ec245c161a74bb80b47f74a1fdb802f1ea2bc
parent61b7946e90165de3ebf943e5c454fc0b62c029ad
ulogd: Perform nice() before giving up root

The daemon code currently tries to nice(-1) just after having given up root
privileges, which fails. This patch moves the nice(-1) call to just before
the code that gives up the required privileges.

Signed-off-by: Chris Boot <bootc@bootc.net>
src/ulogd.c