Skip to content

Commit

Permalink
Merge pull request swiftlang#199 from ddunbar/SR-6409
Browse files Browse the repository at this point in the history
[Linux] Use SIGSYS over SIGUNUSED.
  • Loading branch information
ddunbar authored Nov 18, 2017
2 parents 177bbca + a9c46f1 commit 303a89b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/BuildSystem/LaneBasedExecutionQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class LaneBasedExecutionQueue : public BuildExecutionQueue {
#if defined(__linux__)
sigset_t mostSignals;
sigemptyset(&mostSignals);
for (int i = 1; i < SIGUNUSED; ++i) {
for (int i = 1; i < SIGSYS; ++i) {
if (i == SIGKILL || i == SIGSTOP) continue;
sigaddset(&mostSignals, i);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Commands/NinjaBuildCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ buildCommand(BuildContext& context, ninja::Command* command) {
#if defined(__linux__)
sigset_t mostSignals;
sigemptyset(&mostSignals);
for (int i = 1; i < SIGUNUSED; ++i) {
for (int i = 1; i < SIGSYS; ++i) {
if (i == SIGKILL || i == SIGSTOP) continue;
sigaddset(&mostSignals, i);
}
Expand Down

0 comments on commit 303a89b

Please sign in to comment.