summary refs log tree commit diff
path: root/pkgs/development/compilers/swift/patches/sigunused.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/swift/patches/sigunused.patch')
-rw-r--r--pkgs/development/compilers/swift/patches/sigunused.patch21
1 files changed, 4 insertions, 17 deletions
diff --git a/pkgs/development/compilers/swift/patches/sigunused.patch b/pkgs/development/compilers/swift/patches/sigunused.patch
index 42e6e297e0a..2701d1a3ae2 100644
--- a/pkgs/development/compilers/swift/patches/sigunused.patch
+++ b/pkgs/development/compilers/swift/patches/sigunused.patch
@@ -1,22 +1,9 @@
---- a/swift-corelibs-libdispatch/libpwq/src/posix/manager.c
-+++ b/swift-corelibs-libdispatch/libpwq/src/posix/manager.c
-@@ -273,9 +273,6 @@ static void sigmask_init(void)
-     sigdelset(&sigmask, SIGFPE);
-     sigdelset(&sigmask, SIGBUS);
-     sigdelset(&sigmask, SIGSEGV);
--#if SIGSYS != SIGUNUSED
--    sigdelset(&sigmask, SIGSYS);
--#endif
-     sigdelset(&sigmask, SIGPIPE);
-     sigdelset(&sigmask, SIGPROF);
- 
-
---- a/swiftpm/Sources/Utility/Process.swift
-+++ b/swiftpm/Sources/Utility/Process.swift
-@@ -140,7 +140,7 @@ public final class Process: ObjectIdentifierProtocol {
+--- a/swiftpm/Sources/Basic/Process.swift
++++ b/swiftpm/Sources/Basic/Process.swift
+@@ -258,7 +258,7 @@ public func launch() throws {
          // modify, so we have to take care about the set we use.
          var mostSignals = sigset_t()
-         sigemptyset(&mostSignals);
+         sigemptyset(&mostSignals)
 -        for i in 1 ..< SIGUNUSED {
 +        for i in 1 ..< SIGSYS {
              if i == SIGKILL || i == SIGSTOP {