Lines Matching refs:_subprocess
62 import _subprocess
91 from _subprocess import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
509 p2cread = _subprocess.GetStdHandle(_subprocess.STD_INPUT_HANDLE)
511 p2cread, _ = _subprocess.CreatePipe(None, 0)
513 p2cread, p2cwrite = _subprocess.CreatePipe(None, 0)
526 c2pwrite = _subprocess.GetStdHandle(_subprocess.STD_OUTPUT_HANDLE)
528 _, c2pwrite = _subprocess.CreatePipe(None, 0)
530 c2pread, c2pwrite = _subprocess.CreatePipe(None, 0)
543 errwrite = _subprocess.GetStdHandle(_subprocess.STD_ERROR_HANDLE)
545 _, errwrite = _subprocess.CreatePipe(None, 0)
547 errread, errwrite = _subprocess.CreatePipe(None, 0)
568 return _subprocess.DuplicateHandle(_subprocess.GetCurrentProcess(),
569 handle, _subprocess.GetCurrentProcess(), 0, 1,
570 _subprocess.DUPLICATE_SAME_ACCESS)
576 os.path.dirname(_subprocess.GetModuleFileName(0)),
605 startupinfo.dwFlags |= _subprocess.STARTF_USESTDHANDLES
611 startupinfo.dwFlags |= _subprocess.STARTF_USESHOWWINDOW
612 startupinfo.wShowWindow = _subprocess.SW_HIDE
615 if (_subprocess.GetVersion() >= 0x80000000 or
629 creationflags |= _subprocess.CREATE_NEW_CONSOLE
637 hp, ht, pid, tid = _subprocess.CreateProcess(executable, args,
672 _WaitForSingleObject=_subprocess.WaitForSingleObject,
673 _WAIT_OBJECT_0=_subprocess.WAIT_OBJECT_0,
674 _GetExitCodeProcess=_subprocess.GetExitCodeProcess):
692 _subprocess.WaitForSingleObject(self._handle,
693 _subprocess.INFINITE)
694 self.returncode = _subprocess.GetExitCodeProcess(self._handle)
777 _subprocess.TerminateProcess(self._handle, 1)
783 rc = _subprocess.GetExitCodeProcess(self._handle)
784 if rc == _subprocess.STILL_ACTIVE: