summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-09-21 15:57:59 -0400
committerMark Stapp <mjs@voltanet.io>2020-10-28 16:31:54 -0400
commitd81ca9a3faabe54f57b11acf87585e48d3a44480 (patch)
tree474f19cec6bb503b6a99d3940867a5fd5199f134 /zebra/kernel_socket.c
parent1543c387be3bd45a68ef1382f07234cd71cac7de (diff)
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>
Diffstat (limited to 'zebra/kernel_socket.c')
0 files changed, 0 insertions, 0 deletions