dougm       01/01/25 00:10:16

  Modified:    .        Changes ToDo
               Apache   Apache.pm
  Log:
  document Apache->server->register_cleanup
  
  Revision  Changes    Path
  1.573     +3 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.572
  retrieving revision 1.573
  diff -u -r1.572 -r1.573
  --- Changes   2001/01/25 07:43:05     1.572
  +++ Changes   2001/01/25 08:10:15     1.573
  @@ -10,6 +10,9 @@
   
   =item 1.24_02-dev
   
  +document Apache->server->register_cleanup
  +[Perrin Harkins <[EMAIL PROTECTED]>]
  +
   Apache::Server->loglevel can now be modified
   [Geoffrey Young <[EMAIL PROTECTED]>]
   
  
  
  
  1.269     +0 -3      modperl/ToDo
  
  Index: ToDo
  ===================================================================
  RCS file: /home/cvs/modperl/ToDo,v
  retrieving revision 1.268
  retrieving revision 1.269
  diff -u -r1.268 -r1.269
  --- ToDo      2001/01/25 07:43:05     1.268
  +++ ToDo      2001/01/25 08:10:15     1.269
  @@ -16,9 +16,6 @@
   - From: Paul Walmsley <[EMAIL PROTECTED]>
     Subject: BUG: mod_perl >= 1.23 on Perl 5.6 uses stdout fd for STDIN and STDOUT
   
  -- From: Perrin Harkins <[EMAIL PROTECTED]>
  -  Subject: Re: How to recognize server shutdown?
  -
   - From: Wenzhong Tang <[EMAIL PROTECTED]>
     Subject: RE: Prototype mismatch in Apache::PerlRun line 343
   
  
  
  
  1.61      +7 -0      modperl/Apache/Apache.pm
  
  Index: Apache.pm
  ===================================================================
  RCS file: /home/cvs/modperl/Apache/Apache.pm,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- Apache.pm 2000/12/20 08:07:34     1.60
  +++ Apache.pm 2001/01/25 08:10:16     1.61
  @@ -1068,6 +1068,13 @@
          warn "registered cleanup called for ", $r->uri, "\n";
      });
   
  +Cleanup functions registered in the parent process (before forking)
  +will run once when the server is shut down:
  +
  +   #PerlRequire startup.pl
  +   warn "parent pid is $$\n";
  +   Apache->server->register_cleanup(sub { warn "server cleanup in $$\n"});
  +
   The I<post_connection> method is simply an alias for I<register_cleanup>, 
   as this method may be used to run code after the client connection is closed,
   which may not be a I<cleanup>.
  
  
  

Reply via email to