]> git.proxmox.com Git - mirror_frr.git/commit
zebra: only perform shutdown signal processing once
authorMark Stapp <mjs@voltanet.io>
Mon, 15 Oct 2018 15:14:07 +0000 (11:14 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 25 Oct 2018 12:57:04 +0000 (08:57 -0400)
commitff2460d5972a21363dab55cf874fc740380e5e55
treefb7a52dd05fc3046e38834bfacf8417725e670dc
parent8b962e77595b499be610aee5f8ce6132f062affd
zebra: only perform shutdown signal processing once

Avoid running the shutdown/sigint handler code more than once. With
the async dataplane, once shutdown has been initiated, the completion
of all async updates triggers final shutdown of the zebra main
pthread. During that time, avoid taking and processing a second
signal, such as SIGINT or SIGTERM.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/main.c