Skip to content

Preview: remove use of signal on Windows #26

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 1 commit into from
Aug 22, 2022

Conversation

compnerd
Copy link
Member

Windows does not support signal(2). Instead, use TerminateProcess to
terminate the process. We will not properly handle the termination of
child processes for the preview process, which should be handled by the
construction of a job object that all child processes are attached to
such that when the parent process is terminated, the children will be
properly reaped. This is required to enable building the plugin on
Windows which is a dependency for swift-syntax.

Windows does not support signal(2).  Instead, use `TerminateProcess` to
terminate the process.  We will not properly handle the termination of
child processes for the preview process, which should be handled by the
construction of a job object that all child processes are attached to
such that when the parent process is terminated, the children will be
properly reaped.  This is required to enable building the plugin on
Windows which is a dependency for swift-syntax.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @DougGregor

Copy link

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

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

This looks good to me, but i'll leave the final say to @ethan-kusters.

Copy link
Contributor

@ethan-kusters ethan-kusters left a comment

Choose a reason for hiding this comment

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

Thanks @compnerd! Is this blocking SwiftSyntax? I can tag a new release with just the fix cherry-picked if so.

@CodaFi
Copy link

CodaFi commented Aug 22, 2022

It's not blocking us, I'm going to temporarily remove this dependency from the main repository. Once we have a blue Windows build we can look into reintroducing it.

@DougGregor
Copy link
Member

Shall we merge?

@DougGregor DougGregor merged commit 6a6577a into swiftlang:main Aug 22, 2022
@compnerd compnerd deleted the abort branch April 8, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants