Branch: Tag:

2000-04-13

2000-04-13 19:03:18 by Per Hedbor <ph@opera.com>

Do not have ABS on NT, and try to find files to dump without the device name (c:/foo/bar/roxen.pike -> /foo/bar/roxen.pike) if it is not found using the device path

Rev: server/base_server/roxen.pike:1.479

4:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.478 2000/04/11 04:54:21 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.479 2000/04/13 19:03:18 per Exp $";      object backend_thread;   ArgCache argcache;
393:    seteuid(saved_uid);   #endif /* HAVE_EFFECTIVE_USER */    } + #else /* efun(seteuid) */ +  void create(string reason, int|string|void uid, int|string|void gid){}   #endif /* efun(seteuid) */   }   
1840:    foo[4], (float)tmp/(float)10, foo[3]));   }    -  + #ifndef __NT__   static int abs_started;      void restart_if_stuck (int force)
1870:    });    alarm (60*QUERY(abs_timeout)+10);   } + #endif      // Settings used by the various administration interface modules etc.   class ConfigIFCache
2629:    SET_LOCALE(default_locale);       // Dump some programs (for speed) +  master()->resolv ("RXML.refs"); +  master()->resolv ("RXML.PXml"); +  master()->resolv ("RXML.PEnt"); +     dump( "etc/roxen_master.pike" );    dump( "etc/modules/Dims.pmod" ); -  dump( "etc/modules/RXML.pmod/module.pmod" ); -  foreach( glob("*.p???",get_dir( "etc/modules/RXML.pmod/")), string q ) + // dump( "etc/modules/RXML.pmod/module.pmod" ); +  foreach(({ "module.pmod","PEnt.pike", "PExpr.pike","PXml.pike", +  "refs.pmod","utils.pmod" }), string q )    dump( "etc/modules/RXML.pmod/"+ q );    dump( "etc/modules/Roxen.pmod" );       // This is currently needed to resolve the circular references in    // RXML.pmod correctly. :P -  master()->resolv ("RXML.refs"); +        dump( "base_server/disk_cache.pike" );    foreach( glob("*.pmod",get_dir( "etc/modules/RoxenLocale.pmod/")), string q )
2657:    dump( "base_server/supports.pike" );    dump( "base_server/hosts.pike");    dump( "base_server/language.pike"); -  dump( "base_server/configuration.pike" ); +       #ifndef __NT__    if(!getuid())
3129:   {    if( file[0] != '/' )    file = getcwd() +"/"+ file; -  +  file = normalize_path( file );    program p = master()->programs[ replace(file, "//", "/" ) ]; -  + #ifdef __NT__ +  if( !p ) +  { +  if( sscanf( file, "%*s:/%s", file ) ) +  { +  file = "/"+file; +  p = master()->programs[ replace(file, "//", "/" ) ]; +  } +  } + #endif +     array q;       if(!p)
3309:   #endif    start_time=time(); // Used by the "uptime" info later on.    +     if (QUERY(suicide_engage))    call_out (restart,60*60*24*QUERY(suicide_timeout)); -  + #ifndef __NT__    restart_if_stuck( 0 ); -  + #endif    return -1;   }   
3322:   {    switch(name)    { + #ifndef __NT__    case "abs_engage":    if (value)    restart_if_stuck(1);    else    remove_call_out(restart_if_stuck);    break; -  + #endif       case "suicide_engage":    if (value)