Show More
@@ -189,8 +189,12 b' def base_launch_kernel(code, fname, stdin=None, stdout=None, stderr=None,' | |||
|
189 | 189 | creationflags=512, # CREATE_NEW_PROCESS_GROUP |
|
190 | 190 | stdin=_stdin, stdout=_stdout, stderr=_stderr) |
|
191 | 191 | else: |
|
192 | from _subprocess import DuplicateHandle, GetCurrentProcess, \ | |
|
193 | DUPLICATE_SAME_ACCESS | |
|
192 | try: | |
|
193 | from _winapi import DuplicateHandle, GetCurrentProcess, \ | |
|
194 | DUPLICATE_SAME_ACCESS | |
|
195 | except: | |
|
196 | from _subprocess import DuplicateHandle, GetCurrentProcess, \ | |
|
197 | DUPLICATE_SAME_ACCESS | |
|
194 | 198 | pid = GetCurrentProcess() |
|
195 | 199 | handle = DuplicateHandle(pid, pid, pid, 0, |
|
196 | 200 | True, # Inheritable by new processes. |
@@ -100,7 +100,10 b' class ParentPollerWindows(Thread):' | |||
|
100 | 100 | def run(self): |
|
101 | 101 | """ Run the poll loop. This method never returns. |
|
102 | 102 | """ |
|
103 | from _subprocess import WAIT_OBJECT_0, INFINITE | |
|
103 | try: | |
|
104 | from _winapi import WAIT_OBJECT_0, INFINITE | |
|
105 | except ImportError: | |
|
106 | from _subprocess import WAIT_OBJECT_0, INFINITE | |
|
104 | 107 | |
|
105 | 108 | # Build the list of handle to listen on. |
|
106 | 109 | handles = [] |
General Comments 0
You need to be logged in to leave comments.
Login now