26 #ifndef http_cache_interrupt_handler_h 27 #define http_cache_interrupt_handler_h 35 #include "HTTPCache.h" 36 #include "EventHandler.h" 43 unlink_file(
const string &f)
79 assert(signum == SIGINT);
80 DBG(cerr <<
"Inside the HTTPCacheInterruptHandler." << endl);
82 vector<string> *of = &HTTPCache::_instance->d_open_files;
84 DBG(copy(of->begin(), of->end(),
85 ostream_iterator<string>(cerr,
"\n")));
87 for_each(of->begin(), of->end(), unlink_file);
89 HTTPCache::delete_instance();
95 #endif // http_cache_interrupt_handler_h
top level DAP object to house generic methods
virtual void handle_signal(int signum)