From 959586bc8f2aecbbf5cad58bce2c77869bc6596d Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 20 Jan 2015 22:54:07 -0800 Subject: [PATCH] Add debug(cmd) to errRun() --- mininet/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mininet/util.py b/mininet/util.py index a655f7d..a84148e 100644 --- a/mininet/util.py +++ b/mininet/util.py @@ -77,6 +77,7 @@ def errRun( *cmd, **kwargs ): cmd = [ str( arg ) for arg in cmd ] elif isinstance( cmd, list ) and shell: cmd = " ".join( arg for arg in cmd ) + debug( '*** errRun:', cmd, '\n' ) popen = Popen( cmd, stdout=PIPE, stderr=stderr, shell=shell ) # We use poll() because select() doesn't work with large fd numbers, # and thus communicate() doesn't work either