2002-12-12 03:43:30 +00:00
|
|
|
//===- Support/Signals.h - Signal Handling support -------------*- C++ -*-===//
|
2002-04-18 19:53:34 +00:00
|
|
|
//
|
|
|
|
// 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>
|
|
|
|
|
|
|
|
// 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
|
2002-12-12 03:43:30 +00:00
|
|
|
|