Ignore:
Timestamp:
01/08/2007 00:18:50 (5 years ago)
Author:
chris
Message:

Replace almost all calls to syslog() with logging framework. (merges [1783])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/server/Daemon.cpp

    r1741 r1784  
    1919#include <string.h> 
    2020#include <stdarg.h> 
    21  
    22 #ifdef HAVE_SYSLOG_H 
    23         #include <syslog.h> 
    24 #endif 
    2521 
    2622#ifdef WIN32 
     
    354350                        if(::setsid() == -1) 
    355351                        { 
    356                                 ::syslog(LOG_ERR, "can't setsid"); 
     352                                BOX_ERROR("Failed to setsid(): " <<  
     353                                        strerror(errno)); 
    357354                                THROW_EXCEPTION(ServerException, DaemoniseFailed) 
    358355                        } 
Note: See TracChangeset for help on using the changeset viewer.