diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-03-30 14:28:10 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-03-30 14:28:10 -0400 |
| commit | 20b0a2ed3e8f7c7bb94e52e3fa29086d7dcad2be (patch) | |
| tree | adcb69a8979adb410763b1bbae9b9209d0d04236 /staticd/static_debug.c | |
| parent | ff82bbbb912d84a4a9bc22a7efe7f51adada02eb (diff) | |
lib: defer grpc plugin initialization to post fork
When using the GRPC northbound plugin, initialization occurs at the
frr_late_init hook. This is called before fork() when daemonizing (using
-d). Because the GRPC library internally creates threads, this means our
threads go away in the child process, so GRPC doesn't work when used
with -d. Rectify this situation by deferring plugin init to after fork
by scheduling a task on the threadmaster, since those are executed by
the child.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'staticd/static_debug.c')
0 files changed, 0 insertions, 0 deletions
