Branch: Tag:

2001-07-05

2001-07-05 04:32:25 by Martin Nilsson <mani@lysator.liu.se>

Possibly fixes problem where reloaded modules sometimes gets dropped. Cleaned up some profiling code.

Rev: server/base_server/configuration.pike:1.447

3:   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.446 2001/07/02 21:59:34 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.447 2001/07/05 04:32:25 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
2305:       failed_urls = ({ });    -  int st = gethrtime(); +     foreach( (query( "URLs" )-registered_urls), string url )    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url });
2464:    while( modules[ modname ] && modules[ modname ][ id ] )    id++;    + #ifdef MODULE_DEBUG    int start_time = gethrtime(); -  + #endif       if( !moduleinfo )    {
2991:       clean_up_for_module( moduleinfo, me );    -  m_delete( enabled_modules, modname + "#" + id ); -  forcibly_added[ modname + "#" + id ] = 0; +     if( !nodest )    { -  +  m_delete( enabled_modules, modname + "#" + id ); +  forcibly_added[ modname + "#" + id ] = 0;    store( "EnabledModules",enabled_modules, 1, this_object());    destruct(me);    }