books
Free Books / Computers / Practical mod_perl /

previous page: 22.4.1. Evil Things Might Happen When Using PerlFreshRestart
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 22.4.3. Processes Get Stuck on Graceful Restart

22.4.2. [warn] child process 30388 did not exit, sending another SIGHUP




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

With Apache Version 1.3.0 and higher, mod_perl will call the perl_destruct( ) Perl API function during the child exit phase. This will cause proper execution of any END blocks found during server startup and will also invoke the DESTROY method on global objects that still exist.

It is possible that this operation will take a long time to finish, causing problems during a restart. If you use the apachectl script to restart the server, it sends the SIGHUPsignal after waiting for a short while. The SIGHUP can cause problems, since it might disrupt something you need to happen during server shutdown (for example, saving data).

If you are certain that your code does not contain any END blocks or DESTROY methods to be run during child server shutdown, you can avoid the delays by setting the PERL_DESTRUCT_LEVEL environment variable to -1. Be careful, however; even if your code doesn't include any END blocks or DESTROY methods, any modules you use( ) might.

 

Continue to:

  • prev: 22.4.1. Evil Things Might Happen When Using PerlFreshRestart
  • Table of Contents
  • next: 22.4.3. Processes Get Stuck on Graceful Restart

Books by Stas Bekman:















TOP
previous page: 22.4.1. Evil Things Might Happen When Using PerlFreshRestart
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 22.4.3. Processes Get Stuck on Graceful Restart

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com