]> git.puffer.fish Git - matthieu/frr.git/commit
lib: avoid signal-handling race with event loop poll call
authorMark Stapp <mjs@voltanet.io>
Mon, 21 Sep 2020 19:57:59 +0000 (15:57 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 3 Mar 2021 17:47:55 +0000 (12:47 -0500)
commitb339cc149751429c352d8537f2d0c8ecb9a6f80f
treecc720247e02ccbd879fc09a3448f98cb5c00b61d
parent0f7b432c305d1ea933e9d2651e531234eb0e056f
lib: avoid signal-handling race with event loop poll call

Manage the main pthread's signal mask to avoid a signal-handling
race. Before entering poll, check for pending signals that the
application needs to handle. Use ppoll() to re-enable those
signals during the poll call.

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