Commit 59622a5b authored by Takuto Ikuta's avatar Takuto Ikuta Committed by LUCI CQ

use CREATE_NEW_PROCESS_GROUP to invoke ninjalog_uploader

This is necessary to make ninjalog_uploader_wrapper.py exit without
waitinng finish of ninjalog_uploader.py in windows.

Bug: 992282
Change-Id: I69d11074bcbe5d0958468a9c8ec8391b0741a839
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2237269
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: 's avatarYoshisato Yanagisawa <yyanagisawa@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
parent 1dcaaa7a
......@@ -5,8 +5,10 @@
from __future__ import print_function
import os
import json
import os
import platform
import subprocess
import sys
import ninjalog_uploader
......@@ -110,9 +112,13 @@ def main():
# Run upload script without wait.
devnull = open(os.devnull, "w")
creationnflags = 0
if platform.system() == 'Windows':
creationnflags = subprocess.CREATE_NEW_PROCESS_GROUP
subprocess2.Popen(['vpython', UPLOADER] + sys.argv[1:],
stdout=devnull,
stderr=devnull)
stderr=devnull,
creationflags=creationnflags)
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment