From 098bede0ec75fb809cc5715379f995fcb1a5b7d6 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 2 Oct 2014 20:09:17 -0700 Subject: [PATCH] Wait for controller shutdown. Unfortunately, this can slow things down a bit - perhaps 100-200 ms in the case of ovs-controller, but I am hoping that it may help slightly with #399. --- mininet/node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mininet/node.py b/mininet/node.py index c9d36ef..c82d293 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1293,6 +1293,7 @@ class Controller( Node ): def stop( self ): "Stop controller." self.cmd( 'kill %' + self.command ) + self.cmd( 'wait %' + self.command ) self.terminate() def IP( self, intf=None ):