From f4ef965dadd999f7e4687053153c97b8b320819c Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Sat, 4 Nov 2023 10:48:25 -0500 Subject: [PATCH] Elide main queue check in Linux readpassphrase() implementation (#185) * Elide main queue check in Linux readpassphrase impl * Update Package.swift --- Sources/ConsoleKit/Terminal/readpassphrase_linux.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ConsoleKit/Terminal/readpassphrase_linux.swift b/Sources/ConsoleKit/Terminal/readpassphrase_linux.swift index dd03a1c..5fb965d 100644 --- a/Sources/ConsoleKit/Terminal/readpassphrase_linux.swift +++ b/Sources/ConsoleKit/Terminal/readpassphrase_linux.swift @@ -15,7 +15,7 @@ import Dispatch /// fatal error to call it off the main thread. This enables us to have the signal recovery handler write to somewhere /// it can find without risking intervention from the Swift runtime at async-signal time. internal func linux_readpassphrase(_ prompt: UnsafePointer, _ buf: UnsafeMutablePointer, _ bufsiz: Int, _ flags: Int32) -> UnsafeMutablePointer? { - dispatchPrecondition(condition: .onQueue(.main)) + //dispatchPrecondition(condition: .onQueue(.main)) precondition((flags & 0x20/* RPP_STDIN */) == 0, "RPP_STDIN is not supported by this implementation") precondition((flags & 0x04/* RPP_FORCELOWER */) == 0, "RPP_FORCELOWER is not supported by this implementation")