]> git.puffer.fish Git - matthieu/frr.git/commit
lib: add sigevent_check api
authorMark Stapp <mjs@voltanet.io>
Wed, 2 Sep 2020 20:25:00 +0000 (16:25 -0400)
committerMark Stapp <mjs@voltanet.io>
Mon, 26 Oct 2020 20:46:40 +0000 (16:46 -0400)
commit976c5cc134bb96f309479d281d771d70dbe41f13
treec1ec4e9566e8844566afa1e220b52257a415e500
parentd878460c8cc9a60200843f127b2d22cebfb42229
lib: add sigevent_check api

Add an api that blocks application-handled signals (SIGINT,
SIGTERM, e.g.) then tests whether any signals have been received.
This helps to manage a race between signal reception and the poll
call in the main event loop.

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