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