17#ifndef __signal_handler_h__
18#define __signal_handler_h__
24 namespace SignalHandler
void init()
set up the signal handler
void on_signal(cleanup_function_type func)
add function to be run when a signal is received and at program exit
void unmark_file_for_deletion(const std::string &filename)
unmark the file from deletion
void(*)() cleanup_function_type
the type of function expected for on_signal()
void mark_file_for_deletion(const std::string &filename)
mark the file for deletion when a signal is received or at program exit