summaryrefslogtreecommitdiffstats
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
commitf857cd7518ddde3e74aa9eb37b69c8fc248807c5 (patch)
tree3fe5bb71a99eafe1ff221fc1d2e5a113517a5fd5
parent12ba711f35b43c1f9234bd644ee438fdb5fb05a4 (diff)
downloadbcm5719-llvm-f857cd7518ddde3e74aa9eb37b69c8fc248807c5.tar.gz
bcm5719-llvm-f857cd7518ddde3e74aa9eb37b69c8fc248807c5.zip
Rewrite comments.
llvm-svn: 175651
-rw-r--r--llvm/lib/Support/Unix/Signals.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 85be888cd72..66338f17d88 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud