Added volatile to local variables needed by setjmp 34/2934/3
authorEyal Bari <ebari@cisco.com>
Mon, 19 Sep 2016 07:23:39 +0000 (10:23 +0300)
committerJohn Lo <loj@cisco.com>
Tue, 20 Sep 2016 16:24:53 +0000 (16:24 +0000)
commitd334a6b458e2ea60ee82b402d4785f5a2abc3c24
treefc9d38bf928875b92a4ef58a53718a4b30d74ccf
parent2d085d9c6185caa2a84c5fd8740d279336f2d702
Added volatile to local variables needed by setjmp

Function vlib_main uses nonlocal control transfer (setjmp, longjmp),
local variables might be mapped to cpu registers which might be
different when longjmp'ing back to it. Added volatile to keep those
variables on the stack. to fix vpp crash when exiting via SIGTERM.

Change-Id: I03e836966c68a966a84d635bc1f7b3a3c252f3ea
Signed-off-by: Eyal Bari <ebari@cisco.com>
vlib/vlib/main.c