86e5f910ba6a76025ae2273d1b2f625052125819
[oota-llvm.git] / include / llvm / System / Signals.h
1 //===- Support/Signals.h - Signal Handling support -------------*- C++ -*-===//
2 //
3 // This file defines some helpful functions for dealing with the possibility of
4 // unix signals occuring while your program is running.
5 //
6 //===----------------------------------------------------------------------===//
7
8 #ifndef SUPPORT_SIGNALS_H
9 #define SUPPORT_SIGNALS_H
10
11 #include <string>
12
13 //
14 // This will include the signal handler return type.
15 //
16 #include "Config/config.h"
17
18 // RemoveFileOnSignal - This function registers signal handlers to ensure that
19 // if a signal gets delivered that the named file is removed.
20 //
21 void RemoveFileOnSignal(const std::string &Filename);
22
23 #endif
24