You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netlink: Introduce event loop and use signalfd to catch signals
Currently we use a blocking netlink socket, which is not compatible
with handling signals gracefully.
To handle SIGINT properly:
- Set the netlink socket to be non-blocking
- Block SIGINT and create a signalfd() to receive it
- Poll the netlink socket and signal fd in a loop
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
0 commit comments