Re: [PATCH] eal: fix calling cleanup function twice

2023-06-05 Thread Thomas Monjalon
01/06/2023 18:08, Bruce Richardson: > If an app calls rte_eal_cleanup() inside it's own code, then cleanup > could be called a second time automatically when the app exits. While > mostly harmless, we can avoid any potential issues by guaranteeing that > cleanup only gets called once, in the same w

[PATCH] eal: fix calling cleanup function twice

2023-06-01 Thread Bruce Richardson
If an app calls rte_eal_cleanup() inside it's own code, then cleanup could be called a second time automatically when the app exits. While mostly harmless, we can avoid any potential issues by guaranteeing that cleanup only gets called once, in the same way that eal_init only ever gets called once.