summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-05-24 17:32:00 -0400
committerDave Barach <dave@barachs.net>2018-05-24 17:47:39 -0400
commitada24ea7012448b75d57ab87a6b7796c55bc44f5 (patch)
treeba81fc3be45a228c3ca9d33038b9218546a2b993
parentf3b274605280c2a0e6cd2e0b6383a4aab249a240 (diff)
VPP-1286: close the fd after mmap-ing svm segments
Broken for years. Duh. Change-Id: Ie5fb8e802f143aacd3301c45b136b24a8d4f6d74 Signed-off-by: Dave Barach <dave@barachs.net>
-rw-r--r--src/svm/svm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svm/svm.c b/src/svm/svm.c
index e3a734cbc84..afba54e74fc 100644
--- a/src/svm/svm.c
+++ b/src/svm/svm.c
@@ -721,6 +721,8 @@ svm_map_region (svm_map_region_args_t * a)
return (0);
}
+ close (svm_fd);
+
if ((uword) rp != rp->virtual_base)
{
clib_warning ("mmap botch");