Skip to content

Commit

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

`cmsDriver.py`: flush stdout buffer before call to `os.execvpe` [`12_4_X`]
  • Loading branch information
cmsbuild authored Feb 1, 2023
2 parents 8c93a95 + a769945 commit 1c7a0db
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 1c7a0db

Please sign in to comment.