You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reset default signal handlers on child processes before spawning them. (#732)
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)
}
```
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
throwSystemError(description:"A child process inherit a file handle without an associated file descriptor. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
0 commit comments