mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-22 04:30:42 +00:00
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:
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 {
|
||||
|
||||
Reference in new issue
Block a user