aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Signals.h
blob: 86e5f910ba6a76025ae2273d1b2f625052125819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===- Support/Signals.h - Signal Handling support -------------*- C++ -*-===//
//
// This file defines some helpful functions for dealing with the possibility of
// unix signals occuring while your program is running.
//
//===----------------------------------------------------------------------===//

#ifndef SUPPORT_SIGNALS_H
#define SUPPORT_SIGNALS_H

#include <string>

//
// This will include the signal handler return type.
//
#include "Config/config.h"

// RemoveFileOnSignal - This function registers signal handlers to ensure that
// if a signal gets delivered that the named file is removed.
//
void RemoveFileOnSignal(const std::string &Filename);

#endif