Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
API: More gracefully fail when opening shared memory segment fails.
[vpp.git]
/
src
/
vlibmemory
/
memory_shared.c
diff --git
a/src/vlibmemory/memory_shared.c
b/src/vlibmemory/memory_shared.c
index
9bab657
..
fbdabd0
100644
(file)
--- a/
src/vlibmemory/memory_shared.c
+++ b/
src/vlibmemory/memory_shared.c
@@
-337,7
+337,7
@@
vl_map_shmem (const char *region_name, int is_vlib)
void *oldheap;
vl_shmem_hdr_t *shmem_hdr = 0;
api_main_t *am = &api_main;
void *oldheap;
vl_shmem_hdr_t *shmem_hdr = 0;
api_main_t *am = &api_main;
- int i;
+ int i
, rv
;
struct timespec ts, tsrem;
u32 vlib_input_queue_length;
struct timespec ts, tsrem;
u32 vlib_input_queue_length;
@@
-352,7
+352,11
@@
vl_map_shmem (const char *region_name, int is_vlib)
}
if (is_vlib == 0)
}
if (is_vlib == 0)
- svm_region_init_chroot (am->root_path);
+ {
+ rv = svm_region_init_chroot (am->root_path);
+ if (rv)
+ return rv;
+ }
if (a->root_path != NULL)
{
if (a->root_path != NULL)
{