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
On ^C, term_received is set to 1 in signal handler. SIGINT has the SA_RESTART flag enabled, that way, syscalls are automatically restarted. Which means that the termination will occured only at the next packet loop entry. On low-traffic network, next packet can arrive after several seconds.
Options available:
Do not set SA_RESTART flag
Replace the whole logic with signalfd()
The latter is the best option but will require a careful rewrite of the main loop.
The text was updated successfully, but these errors were encountered:
On ^C,
term_received
is set to 1 in signal handler. SIGINT has the SA_RESTART flag enabled, that way, syscalls are automatically restarted. Which means that the termination will occured only at the next packet loop entry. On low-traffic network, next packet can arrive after several seconds.Options available:
SA_RESTART
flagsignalfd()
The latter is the best option but will require a careful rewrite of the main loop.
The text was updated successfully, but these errors were encountered: