We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e28a9 commit a5329ffCopy full SHA for a5329ff
Sources/TSCUtility/InterruptHandler.swift
@@ -40,7 +40,9 @@ public final class InterruptHandler {
40
_ = Self.wasInterrupted
41
_ = Self.wasInterruptedLock
42
_ = Self.signalWatchingPipe
43
+#if !os(Windows)
44
_ = Self.oldAction
45
+#endif
46
47
// Create a signal handler.
48
self.signalHandler = { _ in
@@ -124,7 +126,7 @@ public final class InterruptHandler {
124
126
deinit {
125
127
#if os(Windows)
128
SetConsoleCtrlHandler(self.signalHandler, false)
- CloseHandle(signalWatchingPipe[1])
129
+ CloseHandle(Self.signalWatchingPipe[1])
130
#else
131
// Restore the old action and close the write end of pipe.
132
sigaction(SIGINT, &Self.oldAction, nil)
0 commit comments