diff --git a/Sources/HTTPServerWithQuiescingDemo/main.swift b/Sources/HTTPServerWithQuiescingDemo/main.swift index a4579315..23e0d0ef 100644 --- a/Sources/HTTPServerWithQuiescingDemo/main.swift +++ b/Sources/HTTPServerWithQuiescingDemo/main.swift @@ -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 {