Lines Matching refs:_subprocess
419 import _subprocess
444 from _subprocess import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
829 p2cread = _subprocess.GetStdHandle(_subprocess.STD_INPUT_HANDLE)
831 p2cread, _ = _subprocess.CreatePipe(None, 0)
833 p2cread, p2cwrite = _subprocess.CreatePipe(None, 0)
842 c2pwrite = _subprocess.GetStdHandle(_subprocess.STD_OUTPUT_HANDLE)
844 _, c2pwrite = _subprocess.CreatePipe(None, 0)
846 c2pread, c2pwrite = _subprocess.CreatePipe(None, 0)
855 errwrite = _subprocess.GetStdHandle(_subprocess.STD_ERROR_HANDLE)
857 _, errwrite = _subprocess.CreatePipe(None, 0)
859 errread, errwrite = _subprocess.CreatePipe(None, 0)
876 return _subprocess.DuplicateHandle(_subprocess.GetCurrentProcess(),
877 handle, _subprocess.GetCurrentProcess(), 0, 1,
878 _subprocess.DUPLICATE_SAME_ACCESS)
884 os.path.dirname(_subprocess.GetModuleFileName(0)),
913 startupinfo.dwFlags |= _subprocess.STARTF_USESTDHANDLES
919 startupinfo.dwFlags |= _subprocess.STARTF_USESHOWWINDOW
920 startupinfo.wShowWindow = _subprocess.SW_HIDE
923 if (_subprocess.GetVersion() >= 0x80000000 or
937 creationflags |= _subprocess.CREATE_NEW_CONSOLE
941 hp, ht, pid, tid = _subprocess.CreateProcess(executable, args,
976 _WaitForSingleObject=_subprocess.WaitForSingleObject,
977 _WAIT_OBJECT_0=_subprocess.WAIT_OBJECT_0,
978 _GetExitCodeProcess=_subprocess.GetExitCodeProcess):
996 _subprocess.WaitForSingleObject(self._handle,
997 _subprocess.INFINITE)
998 self.returncode = _subprocess.GetExitCodeProcess(self._handle)
1072 _subprocess.TerminateProcess(self._handle, 1)
1078 rc = _subprocess.GetExitCodeProcess(self._handle)
1079 if rc == _subprocess.STILL_ACTIVE: