Add debug(cmd) to errRun()

This commit is contained in:
Bob Lantz
2015-01-26 14:06:22 -08:00
parent 9bda98486d
commit 959586bc8f
+1
View File
@@ -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