diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-27 04:18:48 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-10-02 12:27:47 +0200 |
commit | 0a7c7856e3eb6db017d3d0c4d19d55c6cdb212e9 (patch) | |
tree | 4a6cb7cee5c17e1e51ba8fe6b81e5c1b40e628ba /watchfrr/watchfrr.h | |
parent | Merge pull request #3102 from ton31337/feature/match_blackhole_nexthops (diff) | |
download | frr-0a7c7856e3eb6db017d3d0c4d19d55c6cdb212e9.tar.xz frr-0a7c7856e3eb6db017d3d0c4d19d55c6cdb212e9.zip |
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>
Diffstat (limited to 'watchfrr/watchfrr.h')
-rw-r--r-- | watchfrr/watchfrr.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |