Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // 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.977 2008/06/24 16:19:52 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.978 2008/07/01 19:44:20 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5859:    }   ";       string src = #"    inherit ___LogFormat;" + a_func + e_func;    program res;    if (mixed err = catch (res = compile_string (src))) {    werror ("Failed to compile program: %s\n", src);    throw (err);    } +  mixed err = catch {    string enc = encode_value(res, master()->MyCodec(res));       con->query("REPLACE INTO compiled_formats (md5,full,enc) VALUES (%s,%s,%s)",    kmd5, fmt, enc); -  +  }; +  if (err) { +  master()->handle_error(err); +  }       LogFormat lf = res();    compiled_log_access[fmt] = lf->log_access;    compiled_log_event[fmt] = lf->log_event;    return lf;   }         // Security patterns