From 2302d0dfa27a348d96a6c9a7d667bd910280a098 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 24 May 2018 17:32:00 -0400 Subject: VPP-1286: close the fd after mmap-ing svm segments Broken for years. Duh. Change-Id: Ie5fb8e802f143aacd3301c45b136b24a8d4f6d74 Signed-off-by: Dave Barach (cherry picked from commit ada24ea7012448b75d57ab87a6b7796c55bc44f5) --- src/svm/svm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/svm/svm.c b/src/svm/svm.c index 16a58fa126a..27869b6e08f 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"); -- cgit 1.2.3-korg