Monthly Archives: February 2005

APR Memory Pools Rock.

I was tracking down a memory leak inside HTTPD and got to play with Memory Pool Debugging. In this specific case, Reverse Proxying a Windows Media Server would cause a signifigant leak. This leak was happening while streaming data to … Continue reading

3 Comments

How to not write a Signal Handler… by example

Read some scary code in Asterisk today: Quote from Asterisk: static void hup_handler(int num) { if (option_verbose > 1) printf(“Received HUP signal — Reloading configs\n”); if (restartnow) execvp(_argv[0], _argv); /* XXX This could deadlock XXX */ ast_module_reload(NULL); } 1. printf … Continue reading

Leave a comment