git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mem: fix undefined behavior in NUMA-aware mapping
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
eal
/
eal_debug.c
diff --git
a/lib/librte_eal/linuxapp/eal/eal_debug.c
b/lib/librte_eal/linuxapp/eal/eal_debug.c
index
b0ae2b7
..
5d92500
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_debug.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_debug.c
@@
-14,6
+14,7
@@
#include <rte_log.h>
#include <rte_debug.h>
#include <rte_common.h>
#include <rte_log.h>
#include <rte_debug.h>
#include <rte_common.h>
+#include <rte_eal.h>
#define BACKTRACE_SIZE 256
#define BACKTRACE_SIZE 256
@@
-79,6
+80,9
@@
rte_exit(int exit_code, const char *format, ...)
va_end(ap);
#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR
va_end(ap);
#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR
+ if (rte_eal_cleanup() != 0)
+ RTE_LOG(CRIT, EAL,
+ "EAL could not release all resources\n");
exit(exit_code);
#else
rte_dump_stack();
exit(exit_code);
#else
rte_dump_stack();