blob: 34e55b651f76b07ef848832b097b4210f45a5d2e [file] [log] [blame]
Chris Lattner922a3922002-04-18 19:53:34 +00001//===- 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// RemoveFileOnSignal - This function registers signal handlers to ensure that
14// if a signal gets delivered that the named file is removed.
15//
16void RemoveFileOnSignal(const std::string &Filename);
17
18#endif