summaryrefslogtreecommitdiff
path: root/lib/sigevent.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-22 16:23:46 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-03-27 09:33:42 -0300
commit83139e57e96493d00cf46c403845c45b6ef2a37c (patch)
tree99179047af7bc7cd77bf33727258b4b24beff495 /lib/sigevent.c
parentff991f6102785130fff8225c5afe7a676567771e (diff)
ldpd: drop privileges earlier in the parent process
This solves a bug where log files created with "log file" were being created root-owned. So, inserting the "log file" command multiple times with the same path would fail giving a permission denied error. Also, rearrange the main() function to call start_child() as soon as possible to avoid a bunch of unnecessary initializations in the forked processes. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/sigevent.c')
0 files changed, 0 insertions, 0 deletions