Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1436

Show
Ignore:
Timestamp:
11/18/06 13:20:23
Author:
fumanchu
Message:

Fix for #581 (Problem Re-spawning on Mac OS X).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpengine.py

    r1434 r1436  
    124124        if sys.platform == "win32": 
    125125            args = ['"%s"' % arg for arg in args] 
    126         os.execv(sys.executable, args) 
     126         
     127        # Some platforms (OS X) will error if all threads are not 
     128        # ABSOLUTELY terminated. See http://www.cherrypy.org/ticket/581. 
     129        while True: 
     130            try: 
     131                os.execv(sys.executable, args) 
     132                break 
     133            except OSError, x: 
     134                if x.errno != 45: 
     135                    raise 
    127136     
    128137    def autoreload(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets