1. 02 2月, 2015 1 次提交
  2. 07 1月, 2015 1 次提交
  3. 03 1月, 2015 1 次提交
  4. 26 12月, 2014 2 次提交
  5. 24 12月, 2014 2 次提交
  6. 23 12月, 2014 3 次提交
  7. 21 12月, 2014 1 次提交
  8. 16 12月, 2014 2 次提交
  9. 13 12月, 2014 5 次提交
  10. 11 12月, 2014 4 次提交
  11. 09 12月, 2014 15 次提交
  12. 05 12月, 2014 2 次提交
  13. 04 12月, 2014 1 次提交
    • A
      Issue 173: add child process log messages to main log file · 7827f413
      Alexis Campailla 提交于
      Slave processes were not using the master process log file.
      On Unix this is relying on the server.logfile variable being available
      to the slave processes through fork(), and reopening the logfile
      in the slaves (on every log event).
      On Windows we don't use server.logfile and require an explicity call
      to setLogFile.
      I resorted to explicitly passing the logfile to the slaves as a
      command line argument, so the logfile argument (and logging) can be
      available to the slave before qfork and globals setup have completed.
      
      Writing to the same file atomically from multiple processes requires
      using CreateFile with FILE_APPEND_DATA, instead of fopen, which provides
      atomicity on Unix but not on Windows.
      
      Also changed the implementation to not reopen the logfile on every
      log event, and not flushing the file on every write. Performance is
      dramaticaly improved this way.
      7827f413