[dpdk-dev] [PATCH v2] eal/interrupts: add function to allow interruptible epoll

Thomas Monjalon thomas at monjalon.net
Mon Oct 19 12:15:00 CEST 2020


04/09/2020 01:28, Stephen Hemminger:
> The existing definition of rte_epoll_wait retries if interrupted
> by a signal. This behavior makes it hard to use rte_epoll_wait
> for applications that want to use signals do do things like
> exit polling loop and shutdown.
> 
> Since changing existing semantic might break applications, add
> a new rte_epoll_wait_interruptible() function that does the
> same thing as rte_epoll_wait but will return -1 and errno of EINTR
> if it receives a signal.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Reviewed-by: Harman Kalra <hkalra at marvell.com>

Applied, thanks




More information about the dev mailing list