Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 25, 2024

On platforms that use posix_spawn(), we should take care to reset the signal handlers of child processes to their defaults, right? Or should this be valid?

signal(SIGABRT, SIG_IGN) await #expect(exitsWith: .success) { raise(SIGABRT) // does nothing because we set it to SIG_IGN in the parent exit(0) }

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.
@grynspan grynspan added bug 🪲 Something isn't working linux 🐧 Linux support (all distros) darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support labels Sep 25, 2024
@grynspan grynspan self-assigned this Sep 25, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan added this to the Swift 6.1 milestone Sep 25, 2024
On platforms that use `posix_spawn()`, we should take care to reset the signal handlers of child processes to their defaults, right? Or should this be valid? ```swift signal(SIGABRT, SIG_IGN) await #expect(exitsWith: .success) { raise(SIGABRT) // does nothing because we set it to SIG_IGN in the parent exit(0) } ```
@grynspan grynspan force-pushed the jgrynspan/set-sigdef branch from adce4d6 to 62371bb Compare September 26, 2024 20:58
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 050d2f2 into main Sep 27, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/set-sigdef branch September 27, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support linux 🐧 Linux support (all distros)

2 participants