Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
727b4981
Commit
727b4981
authored
Apr 11, 2011
by
brian.curtin
Browse files
Options
Browse Files
Download
Plain Diff
Fix #5162. Allow child spawning from Windows services (via pywin32).
parents
49353d0e
e2f29984
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/multiprocessing/forking.py
Lib/multiprocessing/forking.py
+3
-2
No files found.
Lib/multiprocessing/forking.py
View file @
727b4981
...
...
@@ -195,6 +195,7 @@ else:
TERMINATE
=
0x10000
WINEXE
=
(
sys
.
platform
==
'win32'
and
getattr
(
sys
,
'frozen'
,
False
))
WINSERVICE
=
sys
.
executable
.
lower
().
endswith
(
"pythonservice.exe"
)
exit
=
win32
.
ExitProcess
close
=
win32
.
CloseHandle
...
...
@@ -204,7 +205,7 @@ else:
# People embedding Python want to modify it.
#
if
sys
.
executable
.
lower
().
endswith
(
'pythonservice.exe'
)
:
if
WINSERVICE
:
_python_exe
=
os
.
path
.
join
(
sys
.
exec_prefix
,
'python.exe'
)
else
:
_python_exe
=
sys
.
executable
...
...
@@ -394,7 +395,7 @@ else:
if
_logger
is
not
None
:
d
[
'log_level'
]
=
_logger
.
getEffectiveLevel
()
if
not
WINEXE
:
if
not
WINEXE
and
not
WINSERVICE
:
main_path
=
getattr
(
sys
.
modules
[
'__main__'
],
'__file__'
,
None
)
if
not
main_path
and
sys
.
argv
[
0
]
not
in
(
''
,
'-c'
):
main_path
=
sys
.
argv
[
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment