Skip to content
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

Foreground process fix #226

Merged
merged 9 commits into from
Feb 13, 2025
Merged

Conversation

johnbute
Copy link
Contributor

Fixed a bug where a child process did not set main process back into foreground, causing issues such as not being able to let the user prompt y/n
Motivation:

When a child process is created and set into the foreground then terminates, the main process doesn't have the ability to prompt the user anymore.
Modifications:

Simply add a few lines to transfer the main process back to the foreground once the child process finishes

Result:
Allows for user interaction (user input), better resource management, and signal handling.

John Bute added 2 commits February 7, 2025 12:24
…ould fail if the user gave 'Y' instead of 'y' to continue, now all prompting is consistent
@plemarquand
Copy link
Contributor

Fixes #223

@cmcgee1024
Copy link
Member

@johnbute this is a really good fix to have. Thanks for tracking this down.

Can you reformat the code, commit and push it?

@cmcgee1024 cmcgee1024 self-requested a review February 12, 2025 16:04
@cmcgee1024
Copy link
Member

@swift-ci test macOS

@cmcgee1024 cmcgee1024 merged commit 7b773c7 into swiftlang:main Feb 13, 2025
19 checks passed
@cmcgee1024
Copy link
Member

Thank you for your contribution @johnbute . This will be a really good fix to have in swiftly.

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.

3 participants