Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
dd86ba84
Commit
dd86ba84
authored
Mar 07, 2013
by
Lars Kruse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed scope issue with __SyncManager
thanks to Valerio Bellizzomi for reporting this issue
parent
f2e387c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
threading.py
pycam/Utils/threading.py
+5
-5
No files found.
pycam/Utils/threading.py
View file @
dd86ba84
...
...
@@ -39,19 +39,19 @@ log = pycam.Utils.log.get_logger()
try
:
from
multiprocessing.managers
import
SyncManager
as
_
_
SyncManager
except
ImportError
:
pass
from
multiprocessing.managers
import
SyncManager
as
_SyncManager
except
ImportError
,
msg
:
log
.
debug
(
"Failed to import multiprocessing.managers.SyncMananger:
%
s"
%
msg
)
else
:
# this class definition needs to be at the top level - for pyinstaller
class
TaskManager
(
_
_
SyncManager
):
class
TaskManager
(
_SyncManager
):
@
classmethod
def
_run_server
(
cls
,
*
args
):
# make sure that the server ignores SIGINT (KeyboardInterrupt)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_IGN
)
# prevent connection errors to trigger exceptions
try
:
_
_
SyncManager
.
_run_server
(
*
args
)
_SyncManager
.
_run_server
(
*
args
)
except
socket
.
error
:
pass
...
...
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