Branch: Tag:

2003-03-05

2003-03-05 15:51:53 by Martin Stjernholm <mast@lysator.liu.se>

Reverted the fix to call enable_coredumps in each thread; the bug was in Pike.

Rev: server/base_server/roxen.pike:1.825
Rev: server/base_server/roxenloader.pike:1.340
Rev: server/etc/include/roxen.h:1.25

6:   // 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.824 2003/03/05 13:47:26 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.825 2003/03/05 15:51:50 mast Exp $";      //! @appears roxen   //!
63:   # 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;   
3775: Inside #if undefined(__NT__) and #if defined(TEST_EUID_CHANGE)
  #ifdef TEST_EUID_CHANGE    werror ("euid change effective in handler thread.\n");   #endif -  enable_coredumps (1); +     return 1;    }