Changeset 507 for trunk/src/ocatsetup.c


Ignore:
Timestamp:
07/01/09 16:05:12 (3 years ago)
Author:
eagle
Message:

pid file is created optionally,
OC stays in foreground in Cygwin by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ocatsetup.c

    r497 r507  
    6161#endif 
    6262   {0x00, 0x00, 0x6c, 0x00, 0x00, 0x00},   // ocat_hwaddr (OnionCat MAC address) 
    63    PID_FILE, 
     63   PID_FILE,                               // pid_file 
     64   0,                                      // create_pid_file 
    6465   NULL, NULL,                             // logfile 
     66#ifdef __CYGWIN__ 
     67   0, 
     68#else 
    6569   1,                                      // daemon 
     70#endif 
    6671   { 
    6772      /* 
     
    232237         setup_.daemon, 
    233238         t / (3600 * 24), t / 3600 % 24, t / 60 % 60, 
    234          strlen(setup_.version), VERSION_STRING_LEN, setup_.version, 
     239         (int) strlen(setup_.version), VERSION_STRING_LEN, setup_.version, 
    235240         setup_.sizeof_setup, 
    236241         setup_.term_req 
Note: See TracChangeset for help on using the changeset viewer.