Skip to content

Commit 41f2ac1

Browse files
authored
Send SIGABRT to signal-test-app (#324)
Thread sanitizer doesn't handle SIGINT properly, and this causes the signal-test-app to hang when tests are run under TSan. Sending SIGABRT causes signal-test-app to exit under all circumstances. rdar://90715477
1 parent a7c5e25 commit 41f2ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/signal-test-app/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Signal.on(Signal.all) { _ in
2424
}
2525

2626
DispatchQueue.global().asyncAfter(deadline: .now() + 1) {
27-
kill(getpid(), SIGINT)
27+
kill(getpid(), SIGABRT)
2828
}
2929

3030
print("Signal test app running.")

0 commit comments

Comments
 (0)