Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Mod_perl: Safe Resource locking and Cleanup
botswana-7250
follow
0
2-17-2007 11:50 AM
255 views
tags:
mod_perl
,
perl
,
apache
,
web
,
programming
,
cgi
,
cleanup-code
botswana-7250
says:
Mod_perl requires special provisions for cleanup code.
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
TutorGig
Home Security with a Webcam and Twitter
Adult Social Network Zivity Will Fail ... ...
Top 500 Folders in Bloglines
The Evolution of a Programmer
Ruby on Rails
If a programming language was a boat…
More clips from
botswana-7250
Cpantesters results strings
Rogue "Security" website hosted on cable box
GamesFever: A Few Things We Know
Today's Top Clips
The rival to the Bible
Our "Digital Shadow" -a Mind-Bending Prediction
Female Fighters: We Won't Stand for Male Dominance
Different nesting options :)
Layers of Red Cliffs on Mars (Photo)
The Surge has Worked
Clive Thompson: Why Veteran Visionaries Will Save the World
Bush snubs Iran breakthrough opportunity
Scientists Reach Hydrogen Storage Milestone
"Terrorist!" "Kill him!" - Anger growing at McCain rallies
visit the
Top Clips page
View the Top Clips from
February 17, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/738317a9-70ba-4515-a9bc-fb00778a9625/384255C7-7A86-48FD-9B14-9F4E0498A542/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://perl.apache.org/docs/1.0/guide/debug.html" href="http://perl.apache.org/docs/1.0/guide/debug.html" style="font-size: 11px;">perl.apache.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://perl.apache.org/docs/1.0/guide/debug.html"><P>Normally the <CODE>END</CODE> blocks will not be executed after the completion of a request, but only when an Apache child process exits, then if you are writing your own handlers you will need to use the register_cleanup() function to supply cleanup code similar to that used in <CODE>END</CODE> blocks instead of using <CODE>END</CODE> blocks. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://perl.apache.org/docs/1.0/guide/debug.html"><P>Under mod_perl, the above will work only for <CODE>Apache::Registry</CODE> scripts. Otherwise execution of the <CODE>END</CODE> block will be postponed until the process terminates. If you write a handler in the Perl API use the <CODE>register_cleanup()</CODE> method instead. It accepts a reference to a subroutine as an argument:</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/384255C7-7A86-48FD-9B14-9F4E0498A542/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK