From eeef2919e470cdaa083ff9926fa96c6a157f9a9c Mon Sep 17 00:00:00 2001 From: alazyer Date: Wed, 13 Apr 2016 16:32:31 +0800 Subject: [PATCH] add cleanup of mn --- mininet/clean.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mininet/clean.py b/mininet/clean.py index f2e4375e..b36a551b 100755 --- a/mininet/clean.py +++ b/mininet/clean.py @@ -61,7 +61,10 @@ def cleanup( cls): sh( 'killall -9 ' + zombies + ' 2> /dev/null' ) # And kill off sudo mnexec - sh( 'pkill -9 -f "sudo mnexec"') + sh( 'pkill -9 -f "sudo mnexec"' ) + + # And kill off mn, mn doesn't exit when start twice "mn". + sh( 'pkill -9 -f "mn"' ) info( "*** Removing junk from /tmp\n" ) sh( 'rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log' )