Skip to content

Turn off foreground processes on macOS - #7068

Merged
sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:macos_foreground_fix
Nov 9, 2022
Merged

sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:macos_foreground_fix

Conversation

@sophiajt

@sophiajt sophiajt commented Nov 9, 2022

Copy link
Copy Markdown
Contributor

Description

Looks like macOS 13 has issues with how we're currently handling foreground processes. For the time being, let's disable using those techniques on macOS until we have had a chance to investigate further.

This fix prevents a crash on macOS 13 when running `cargo test.

Major Changes

If you're considering making any major change to nushell, before starting work on it, seek feedback from regular contributors and get approval for the idea from the core team either on Discord or GitHub issue.
Making sure we're all on board with the change saves everybody's time.
Thanks!

Tests + Formatting

Make sure you've done the following, if applicable:

  • Add tests that cover your changes (either in the command examples, the crate/tests folder, or in the /tests folder)
    • Try to think about corner cases and various ways how your changes could break. Cover those in the tests

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace --features=extra to check that all tests pass

After Submitting

@sophiajt
sophiajt merged commit f878276 into nushell:main Nov 9, 2022
@sophiajt
sophiajt deleted the macos_foreground_fix branch November 9, 2022 18:39
fdncred pushed a commit that referenced this pull request Aug 4, 2023
# Description
Currently, foreground process management is disabled for macOS, since
the original code had issues (see #7068).
This PR re-enables process management on macOS in combination with the
changes from #9693.

# User-Facing Changes
Fixes hang on exit for nested nushells on macOS (issue #9859). Nushell
should now manage processes in the same way on macOS and other unix
systems.
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.

1 participant