Sylvain Hellegouarch  committed 76beee7

Using the public thread.get_ident API call to retrieve the ID of a thread so that it makes Jython happy

  • Participants
  • Parent commits d069277
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/process/

 import signal as _signal
 import sys
 import time
+import thread
 import threading
 # _module__file__base is used by Autoreload to make
         If the current thread has already been seen, any 'start_thread'
         listeners will not be run again.
-        thread_ident = threading._get_ident()
+        thread_ident = thread.get_ident()
         if thread_ident not in self.threads:
             # We can't just use _get_ident as the thread ID
             # because some platforms reuse thread ID's.