Branch: Tag:

1998-02-04

1998-02-04 16:10:52 by Per Hedbor <ph@opera.com>

Added profining, removed 4711 Privs, added call_out workaround

Rev: server/base_server/configuration.pike:1.92
Rev: server/base_server/disk_cache.pike:1.33
Rev: server/base_server/privs.pike:1.32
Rev: server/base_server/read_config.pike:1.18
Rev: server/base_server/roxen.pike:1.163
Rev: server/base_server/roxenloader.pike:1.55
Rev: server/config_actions/generate_rsa.pike:1.5
Rev: server/modules/filesystems/filesystem.pike:1.26
Rev: server/modules/filesystems/restrictedfs.pike:1.7
Rev: server/modules/filesystems/userfs.pike:1.17
Rev: server/modules/graphics/business_graphics/business.pike:1.63
Rev: server/modules/graphics/graphic_text.pike:1.99
Rev: server/modules/misc/ip-less_hosts.pike:1.8
Rev: server/modules/misc/mirrorserver.pike:1.13
Rev: server/modules/misc/userdb.pike:1.23
Rev: server/modules/scripting/cgi.pike:1.70
Rev: server/modules/scripting/pikescript.pike:1.20
Rev: server/modules/tags/htmlparse.pike:1.74
Rev: server/protocols/ftp.pike:1.77
Rev: server/protocols/http.pike:1.52
Rev: server/start:1.25

1: - string cvs_version = "$Id: configuration.pike,v 1.91 1998/02/04 05:17:55 per Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.92 1998/02/04 16:10:37 per Exp $";   #include <module.h>   #include <roxen.h> -  +  +  + #ifdef PROFILE + mapping profile_map = ([]); + #endif +    /* A configuration.. */      
498:    if(strlen(logfile))    {    do { + #ifndef THREADS    object privs = Privs("Opening logfile \""+logfile+"\""); -  + #endif    object lf=open( logfile, "wac"); -  + #if efun(chmod) +  if(geteuid() != getuid()) chmod(logfile,0666); + #endif    if(!lf) {    mkdirhier(logfile);    if(!(lf=open( logfile, "wac"))) { -  privs = 0; +     report_error("Failed to open logfile. ("+logfile+")\n" +    "No logging will take place!\n");    log_function=0;    break;    }    } -  privs=0; +     mark_fd(lf->query_fd(), "Roxen log file ("+logfile+")");    log_function=lf->write;    // Function pointer, speeds everything up (a little..).