From 0a7c7856e3eb6db017d3d0c4d19d55c6cdb212e9 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 27 Sep 2018 04:18:48 +0200 Subject: 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 --- watchfrr/watchfrr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'watchfrr/watchfrr.h') diff --git a/watchfrr/watchfrr.h b/watchfrr/watchfrr.h index 1a1c19056..ee16846a1 100644 --- a/watchfrr/watchfrr.h +++ b/watchfrr/watchfrr.h @@ -21,6 +21,10 @@ #ifndef FRR_WATCHFRR_H #define FRR_WATCHFRR_H +#include "lib/memory.h" + +DECLARE_MGROUP(WATCHFRR) + extern void watchfrr_vty_init(void); extern pid_t integrated_write_pid; -- cgit v1.2.3