API: More gracefully fail when opening shared memory segment fails. 79/8079/3
authorOle Troan <ot@cisco.com>
Thu, 17 Aug 2017 09:07:33 +0000 (11:07 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 18 Aug 2017 16:46:30 +0000 (16:46 +0000)
commit3cdc25ffbaa572639f99e197172c568e4324bc03
tree268a6e9597028620d5b3d442f658921902a4eec5
parent8ea8916bb8fa85b298e0e5700ba15e4455235015
API: More gracefully fail when opening shared memory segment fails.

API clients would fail with an ASSERT (and core dump) whenever
the API shared memory segment could not be opened.
This returns an error value to the client's connect instead.

Change-Id: Id122a3a090b24b139c382ae09f341bde61fd2540
Signed-off-by: Ole Troan <ot@cisco.com>
src/svm/svm.c
src/svm/svm_common.h
src/vlibmemory/memory_shared.c