Edgewall Software

Changes between Initial Version and Version 1 of Ticket #7049


Ignore:
Timestamp:
Mar 25, 2008, 10:20:07 PM (16 years ago)
Author:
Emmanuel Blot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7049 – Description

    initial v1  
    11When using --daemonize and --auto-reload at the same time the background daemon process exits neatly without any explanation.  Having done some digging around, it seems that the root of the problem is in _restart_with_reloader() at utils/autoreload.py line 55.  When os.spawnve is called, it uses the full sys.argv which includes the --daemonize argument.  My fix for this is:
     2
    23eng:util qa$ diff -c autoreload.py autoreload.py.save
     4{{{
    35*** autoreload.py       Tue Mar 25 16:52:18 2008
    46--- autoreload.py.save  Tue Mar 25 16:14:51 2008
     
    1517          new_environ = os.environ.copy()
    1618--- 55,60 ----
     19}}}
    1720eng:util qa$
    1821