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 - 2001, 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.805 2003/03/05 13:50:43 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.806 2003/03/05 16:24:18 mast Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN   #include <roxen.h>   #include <config.h>   #include <module.h>   #include <variables.h>
Roxen.git/server/base_server/roxen.pike:52:   #else   # define SSL3_WERR(X)   #endif      #ifdef THREAD_DEBUG   # define THREAD_WERR(X) report_debug("Thread: "+X+"\n")   #else   # define THREAD_WERR(X)   #endif    + // Needed to get core dumps of seteuid()'ed processes on Linux. + #if constant(System.dumpable) + #define enable_coredumps(X) System.dumpable(X) + #elif constant(system.dumpable) + // Pike 7.2. + #define enable_coredumps(X) system.dumpable(X) + #else + #define enable_coredumps(X) + #endif +    #define DDUMP(X) sol( combine_path( __FILE__, "../../" + X ), dump )   static function sol = master()->set_on_load;      #ifdef TEST_EUID_CHANGE   int test_euid_change;   #endif      string md5( string what )   {    return Gmp.mpz(Crypto.md5()->update( what )->digest(),256)
Roxen.git/server/base_server/roxen.pike:3669: Inside #if undefined(__NT__)
   string u, g;    int uid, gid;    array pw;       if (from_handler_thread && geteuid()) {    // The euid switch in the backend thread worked here too, so    // there's no need to do anything.   #ifdef TEST_EUID_CHANGE    werror ("euid change effective in handler thread.\n");   #endif -  enable_coredumps (1); +     return 1;    }       u=query("User");    sscanf(u, "%s:%s", u, g);    if(strlen(u))    {    if(getuid())    {    if (!from_handler_thread)