Skip to content

Commit

Permalink
Create a new PIPE for the output of the subprocess. Otherwise, the su…
Browse files Browse the repository at this point in the history
…bprocess may fail when access standard output.
  • Loading branch information
eridai committed Jun 10, 2014
1 parent 9de0817 commit f445aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waagent
Expand Up @@ -3014,7 +3014,7 @@ class ExtensionsConfig(object):
# launch
pid=None
try:
child = subprocess.Popen(dirpath+'/'+cmd+arg,shell=True,cwd=dirpath)
child = subprocess.Popen(dirpath+'/'+cmd+arg,shell=True,cwd=dirpath,stdout=subprocess.PIPE)
except Exception as e:
Error('Exception launching ' + cmd + str(e))
SimpleLog(plugin_log,'Exception launching ' + cmd + str(e))
Expand Down

0 comments on commit f445aff

Please sign in to comment.