]> git.proxmox.com Git - mirror_frr.git/commit - watchfrr/watchfrr.c
watchfrr, lib: cleanup & delay detaching
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 27 Sep 2018 02:18:48 +0000 (04:18 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 2 Oct 2018 10:27:47 +0000 (12:27 +0200)
commit0a7c7856e3eb6db017d3d0c4d19d55c6cdb212e9
tree4a6cb7cee5c17e1e51ba8fe6b81e5c1b40e628ba
parenta762cf08c0052779d8bf5b4b25d1e24a20647ffa
watchfrr, lib: cleanup & delay detaching

This cleans up watchfrr to be more "normal" like the other daemons in
terms of what it does in main(), i.e. using the full frr_*() call set.

Also, this changes the startup behaviour on watchfrr to stay attached on
the daemon's parent process until startup is really complete.  This
should allow removing the "watchfrr.started" hack at some point.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/libfrr.c
lib/libfrr.h
watchfrr/watchfrr.c
watchfrr/watchfrr.h