1 //===- Support/Signals.h - Signal Handling support -------------*- C++ -*-===//
3 // This file defines some helpful functions for dealing with the possibility of
4 // unix signals occuring while your program is running.
6 //===----------------------------------------------------------------------===//
8 #ifndef SUPPORT_SIGNALS_H
9 #define SUPPORT_SIGNALS_H
14 // This will include the signal handler return type.
16 #include "Config/config.h"
18 // RemoveFileOnSignal - This function registers signal handlers to ensure that
19 // if a signal gets delivered that the named file is removed.
21 void RemoveFileOnSignal(const std::string &Filename);