Skip to content

[5.8][Concurrency] Add include of unistd.h to TaskGroup.cpp #63344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 6, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 1, 2023

Description: This fixes compilation in the SWIFT_CONCURRENCY_TASK_TO_THREAD_MODEL, which was not caught in CI because CI does not verify this configuration. We fixed this on main here: #63265 and should have the same fix on 5.8 to avoid a surprise in case we'd want to use this mode in 5.8.
Risk: Low
Review by: @DougGregor @drexin
Testing: CI testing
Original PR: #63265
Radar: rdar://104758975 rdar://104967560

drexin and others added 3 commits February 1, 2023 17:09
rdar://104758975

Missing import caused build failures:

```
stdlib/public/Concurrency/TaskGroup.cpp:572:11: error: use of undeclared identifier 'STDERR_FILENO'
    write(STDERR_FILENO, message, strlen(message));
          ^
```
@ktoso ktoso changed the base branch from main to release/5.8 February 1, 2023 08:17
@ktoso
Copy link
Contributor Author

ktoso commented Feb 1, 2023

@swift-ci please test

@ktoso ktoso requested review from drexin and DougGregor February 1, 2023 08:20
@ktoso ktoso added concurrency Feature: umbrella label for concurrency language features 🍒 release cherry pick Flag: Release branch cherry picks swift 5.8 labels Feb 1, 2023
@xedin xedin removed their request for review February 1, 2023 21:50
@ktoso
Copy link
Contributor Author

ktoso commented Feb 1, 2023

@swift-ci please test

Copy link
Contributor

@drexin drexin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold off on merging this. This is causing some other issues and I am working on a fix.

@ktoso ktoso requested a review from a team as a code owner February 6, 2023 13:53
@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

This branch now includes @drexin's complete fix for this, so it can be merged.

Thank you @drexin for the help here!

@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

Resolves rdar://104967560

@ktoso ktoso requested a review from drexin February 6, 2023 14:43
@ktoso ktoso merged commit 041d9de into swiftlang:release/5.8 Feb 6, 2023
@ktoso ktoso deleted the pick-drexin-patch-6 branch February 6, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features 🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants