adding old changes
This commit is contained in:
+4
-1
@@ -329,7 +329,10 @@ class Node( object ):
|
|||||||
# Shell requires a string, not a list!
|
# Shell requires a string, not a list!
|
||||||
if defaults.get( 'shell', False ):
|
if defaults.get( 'shell', False ):
|
||||||
cmd = ' '.join( cmd )
|
cmd = ' '.join( cmd )
|
||||||
return Popen( cmd, **defaults )
|
old = signal.signal( signal.SIGINT, signal.SIG_IGN )
|
||||||
|
popen = Popen( cmd, **defaults )
|
||||||
|
signal.signal( signal.SIGINT, old )
|
||||||
|
return popen
|
||||||
|
|
||||||
def pexec( self, *args, **kwargs ):
|
def pexec( self, *args, **kwargs ):
|
||||||
"""Execute a command using popen
|
"""Execute a command using popen
|
||||||
|
|||||||
Reference in New Issue
Block a user