Skip to content

Commit

Permalink
Merge pull request #40658 from missirol/devel_cmsDriverFlushStdoutBuf…
Browse files Browse the repository at this point in the history
…fer_125X

`cmsDriver.py`: flush stdout buffer before call to `os.execvpe` [`12_5_X`]
  • Loading branch information
cmsbuild authored Feb 1, 2023
2 parents bcdfd7c + ebbd94a commit e0497b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Configuration/Applications/scripts/cmsDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ def run():
commandString = options.prefix+" cmsRun "+options.suffix
print("Starting "+commandString+' '+options.python_filename)
commands = commandString.lstrip().split()
sys.stdout.flush()
os.execvpe(commands[0],commands+[options.python_filename],os.environ)
sys.exit()

run()



0 comments on commit e0497b0

Please sign in to comment.