https://bugs.dpdk.org/show_bug.cgi?id=1404 Bug ID: 1404 Summary: Ensure primary applications such as testpmd are properly cleaned up Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: critical Priority: Normal Component: DTS Assignee: dev@dpdk.org Reporter: jspewock@iol.unh.edu CC: juraj.linkes@pantheon.tech, probb@iol.unh.edu Target Milestone: --- Right now we are relying on the garbage collector to clean up interactive shells after they fall out of scope, and this is fine for applications like a python shell where it doesn't really matter if we run multiple at once. However, some applications (such as primary applications in DPDK) cannot run if there is an instance of another specific application running. Because of this, we need to be able to guarantee that these critical applications close at certain times but the python garbage collector makes no guarantees for when it cleans up these objects. One of the ways to make this more explicit which is being looked into right now is a context manager. A context manager will help guarantee that when the application is needed in its context block, it will be running, but as soon as we exit the block (whether through exceptions being raised, reaching the end of the block, or anything that would take the code out of that scope) the application is properly cleaned up. This allows many more guarantees for when these critical applications are running and exactly when they close. -- You are receiving this mail because: You are the assignee for the bug.