VPP-1029: Don't call clib_longjmp(...) directly from the SIGTERM handler
authorDave Barach <[email protected]>
Fri, 13 Oct 2017 23:16:56 +0000 (19:16 -0400)
committerFlorin Coras <[email protected]>
Mon, 16 Oct 2017 02:33:49 +0000 (02:33 +0000)
commit84db40e02e74efabe094e0d46ed2fafd348d126d
treeacb97b6c2274bfdb45770347a6033b68ebff0545
parentb5518bedd95bea9c30cebcd5b0db76bd00f30a80
VPP-1029: Don't call clib_longjmp(...) directly from the SIGTERM handler

It's way too easy to imagine leaving a mutex or a spin-lock held in
the /vpe-api shared-memory segment, or elsewhere. Set a volatile
variable and check it in a safe place...

Change-Id: I9d91c38cffeb921143c272162d055c9c24a6c312
Signed-off-by: Dave Barach <[email protected]>
(cherry picked from commit 903651caf320dfdaabd20a0e6f3cd0ffc843e02f)
src/vlib/main.h
src/vlib/unix/main.c