All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup
@ 2017-04-27 12:37 Remy Horton
  2017-04-27 12:37 ` [PATCH v1 1/2] examples/l2fwd-keepalive: add graceful exit Remy Horton
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Remy Horton @ 2017-04-27 12:37 UTC (permalink / raw)
  To: dev; +Cc: John McNamara

The l2fwd-keepalive example has infinite processing loops and as a
result the only way to exit it is via SIGINT/SIGTERM (e.g. Control-C).
The resulting shutdown is unclean, in particular leaving stale shared
host memory handles. This is fixed by adding a signal handler that
causes the processing loops to break, and adding cleanup code to remove
the stale handles.

Remy Horton (2):
  examples/l2fwd-keepalive: add graceful exit
  examples/l2fwd-keepalive: add SHM cleanup on exit

 doc/guides/rel_notes/release_17_05.rst |  4 ++++
 examples/l2fwd-keepalive/main.c        | 31 +++++++++++++++++++++++++++----
 examples/l2fwd-keepalive/shm.c         | 10 ++++++++++
 examples/l2fwd-keepalive/shm.h         |  9 +++++++++
 4 files changed, 50 insertions(+), 4 deletions(-)

-- 
2.5.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-01 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27 12:37 [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup Remy Horton
2017-04-27 12:37 ` [PATCH v1 1/2] examples/l2fwd-keepalive: add graceful exit Remy Horton
2017-04-28  8:37   ` Mcnamara, John
2017-04-27 12:37 ` [PATCH v1 2/2] examples/l2fwd-keepalive: add SHM cleanup on exit Remy Horton
2017-04-28  8:37   ` Mcnamara, John
2017-05-01 14:42 ` [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.