adding old changes

This commit is contained in:
cody burkard
2014-08-01 11:00:07 -07:00
parent a3d51b77e9
commit e9d034bd31
+4 -1
View File
@@ -329,7 +329,10 @@ class Node( object ):
# Shell requires a string, not a list!
if defaults.get( 'shell', False ):
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 ):
"""Execute a command using popen