• Chris McDonough's avatar
    Dumb bug in zdaemon fixed in which it would try to kill process numbers 1, 2, 3, 10, 12, and 15 · 61e58cf7
    Chris McDonough authored
    when it caught a signal related to any of these signal numbers. ;-)  Instead, it
    actually tries now to kill its child process with the same signal.
    
    Pidfile handling improved.
    
    When Zope is started under zdaemon, it no longer writes its own pidfile.  Instead, it passes in the path to Z2.pid to zdaemon as its pidfile name.  The 'zProcessManager.pid' file is no longer ever written.
    
    This caused a change to the -Z option of z2.py which should be mostly backwards-compatible (unless people were relying on zProcessManager.pid to be written).  Now the -Z option is a boolean.  -Z1 means use a daemon.  -Z0 means dont.  The default is -Z1.
    
    Write pidfiles out with trailing newlines.
    
    Minor reorganization of "SignalPasser" code (move it from its own module into zdaemon).
    61e58cf7
z2.py 30.7 KB