summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2013-02-20 19:28:46 +0000
committerDan Gohman <dan433584@gmail.com>2013-02-20 19:28:46 +0000
commit7afb104ed5ce8328da01bdf6fd927489bbaed4b9 (patch)
tree29545dffde6240626da94c7cb8b7500bbc5b5603
parent033ee0f111b572ad4f167676e3c4bb4b71fe2da8 (diff)
downloadllvm-7afb104ed5ce8328da01bdf6fd927489bbaed4b9.tar.gz
llvm-7afb104ed5ce8328da01bdf6fd927489bbaed4b9.tar.bz2
llvm-7afb104ed5ce8328da01bdf6fd927489bbaed4b9.tar.xz
Rewrite comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175651 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Unix/Signals.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc
index 85be888cd7..66338f17d8 100644
--- a/lib/Support/Unix/Signals.inc
+++ b/lib/Support/Unix/Signals.inc
@@ -47,15 +47,17 @@ static void (*InterruptFunction)() = 0;
static std::vector<std::string> FilesToRemove;
static std::vector<std::pair<void(*)(void*), void*> > CallBacksToRun;
-// IntSigs - Signals that may interrupt the program at any time.
+// IntSigs - Signals that represent requested termination. There's no bug
+// or failure, or if there is, it's not our direct responsibility. For whatever
+// reason, our continued execution is no longer desirable.
static const int IntSigs[] = {
SIGHUP, SIGINT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2
};
static const int *const IntSigsEnd =
IntSigs + sizeof(IntSigs) / sizeof(IntSigs[0]);
-// KillSigs - Signals that are synchronous with the program that will cause it
-// to die.
+// KillSigs - Signals that represent that we have a bug, and our prompt
+// termination has been ordered.
static const int KillSigs[] = {
SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGQUIT
#ifdef SIGSYS