Stas Bekman wrote: > > Christoph Bergmann wrote: > > > hi... > > > > i use BSD::Resource to limit the ressources of the apache tasks. this > > works fine but now i want to clean up afterwards but i don't know how to > > catch a killed task... here is what i tried with signals: > > > > ... > > > > Does the following help? (Look at the register_cleanup method) > > http://thingy.kcilink.com/modperlguide/debug/Safe_Resource_Locking_and_Cleanu.html >
thanks, this works. while playing around with it I found $SIG{__DIE__} in your mod_perl guide which fits even better to my needs (I have read about the problems as well but I think its ok for me) because the connection is still open and I can print out information about what has happened. one more question: after processing the sub given to $SIG{__DIE__} apache prints out an "internal server error" - how can I avoid/suppress this? best regards, christoph bergmann