Ignore return value of signal() on Android (#266)

See https://github.com/apple/swift-nio/pull/3181 and
https://github.com/apple/swift-nio/issues/3180
This commit is contained in:
Marc Prud'hommeaux authored and GitHub committed 2025-04-09 13:16:39 +00:00
1 parent a0189d045c
commit 8526b90bc4
1 file changed
+2 -1
@@ -88,7 +88,8 @@ private func runServer() throws {
quiesce.initiateShutdown(promise: fullyShutdownPromise)
}
signal(SIGINT, SIG_IGN)
// assignment needed for Android due to non-nullable return type
_ = signal(SIGINT, SIG_IGN)
signalSource.resume()
do {