Turn off printPid by default to avoid mnexec fork/exec
This commit is contained in:
+2
-2
@@ -258,9 +258,9 @@ class Node( object ):
|
|||||||
"""Send a command, followed by a command to echo a sentinel,
|
"""Send a command, followed by a command to echo a sentinel,
|
||||||
and return without waiting for the command to complete.
|
and return without waiting for the command to complete.
|
||||||
args: command and arguments, or string
|
args: command and arguments, or string
|
||||||
printPid: print command's PID?"""
|
printPid: print command's PID? (False)"""
|
||||||
assert self.shell and not self.waiting
|
assert self.shell and not self.waiting
|
||||||
printPid = kwargs.get( 'printPid', True )
|
printPid = kwargs.get( 'printPid', False )
|
||||||
# Allow sendCmd( [ list ] )
|
# Allow sendCmd( [ list ] )
|
||||||
if len( args ) == 1 and isinstance( args[ 0 ], list ):
|
if len( args ) == 1 and isinstance( args[ 0 ], list ):
|
||||||
cmd = args[ 0 ]
|
cmd = args[ 0 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user