New upstream version 18.11-rc1
[deb_dpdk.git] / lib / librte_eal / common / eal_common_fbarray.c
index 43caf3c..ea0735c 100644 (file)
@@ -2,6 +2,7 @@
  * Copyright(c) 2017-2018 Intel Corporation
  */
 
+#include <fcntl.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <sys/mman.h>
@@ -878,6 +879,10 @@ rte_fbarray_destroy(struct rte_fbarray *arr)
        if (ret)
                return ret;
 
+       /* with no shconf, there were never any files to begin with */
+       if (internal_config.no_shconf)
+               return 0;
+
        /* try deleting the file */
        eal_get_fbarray_path(path, sizeof(path), arr->name);