Commit c7bfa857 authored by Jérome Perrin's avatar Jérome Perrin

fix a239d355 windows does not have a SIGUSR1.

parent bca1fe0c
......@@ -18,6 +18,7 @@
# ===========================================================================
import sys
import os
import argparse
import json
import urllib
......@@ -116,10 +117,11 @@ def _runWithTimeout(queue, func, args, kw):
import signal
import traceback
if hasattr(signal, 'SIGUSR1'):
signal.signal(signal.SIGUSR1, lambda sig, stack: traceback.print_stack(stack))
import os
print "To see current traceback:"
print " kill -SIGUSR1 %s" % os.getpid()
signal.signal(signal.SIGTERM, lambda sig, stack: traceback.print_stack(stack))
queue.put(func(*args, **kw))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment