Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
nexedi
dream
Commits
c7bfa857
Commit
c7bfa857
authored
Mar 19, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
a239d355
windows does not have a SIGUSR1.
parent
bca1fe0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
dream/platform/__init__.py
dream/platform/__init__.py
+6
-4
No files found.
dream/platform/__init__.py
View file @
c7bfa857
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
# ===========================================================================
# ===========================================================================
import
sys
import
sys
import
os
import
argparse
import
argparse
import
json
import
json
import
urllib
import
urllib
...
@@ -116,10 +117,11 @@ def _runWithTimeout(queue, func, args, kw):
...
@@ -116,10 +117,11 @@ def _runWithTimeout(queue, func, args, kw):
import
signal
import
signal
import
traceback
import
traceback
if
hasattr
(
signal
,
'SIGUSR1'
):
signal
.
signal
(
signal
.
SIGUSR1
,
lambda
sig
,
stack
:
traceback
.
print_stack
(
stack
))
signal
.
signal
(
signal
.
SIGUSR1
,
lambda
sig
,
stack
:
traceback
.
print_stack
(
stack
))
import
os
print
"To see current traceback:"
print
"To see current traceback:"
print
" kill -SIGUSR1 %s"
%
os
.
getpid
()
print
" kill -SIGUSR1 %s"
%
os
.
getpid
()
signal
.
signal
(
signal
.
SIGTERM
,
lambda
sig
,
stack
:
traceback
.
print_stack
(
stack
))
queue
.
put
(
func
(
*
args
,
**
kw
))
queue
.
put
(
func
(
*
args
,
**
kw
))
...
...
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