26#ifndef http_cache_interrupt_handler_h
27#define http_cache_interrupt_handler_h
35#include "EventHandler.h"
41static void unlink_file(
const string &f) { unlink(f.c_str()); }
69 assert(signum == SIGINT);
70 DBG(cerr <<
"Inside the HTTPCacheInterruptHandler." << endl);
72 vector<string> *of = &HTTPCache::_instance->d_open_files;
74 DBG(copy(of->begin(), of->end(), ostream_iterator<string>(cerr,
"\n")));
76 for_each(of->begin(), of->end(), unlink_file);
78 HTTPCache::delete_instance();
virtual void handle_signal(int signum)
top level DAP object to house generic methods