Skip to content

Fix dev restart not killing old process in macOS#9380

Open
PikachuEXE wants to merge 1 commit into
FreeTubeApp:developmentfrom
PikachuEXE:dev/fix-dev-restart-macos
Open

Fix dev restart not killing old process in macOS#9380
PikachuEXE wants to merge 1 commit into
FreeTubeApp:developmentfrom
PikachuEXE:dev/fix-dev-restart-macos

Conversation

@PikachuEXE

Copy link
Copy Markdown
Member

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Based on #9378 (but does not requires it

Description

FT dev restarts on file changes (render/main/preload/botGuardScript) (see _scripts/dev-runner.js
killElectron is run with pid (if present) and uses tree-kill which does not work properly on macOS
It does not kill old Electron properly (zombie Electron process stuck around unless killed with Force Quit

This PR switches to https://www.npmjs.com/package/@magda/tree-kill which includes a fix for macOS (see 2 commits = fix + release on https://github.com/magda-io/node-tree-kill/commits/magda/

Screenshots

N/A

Testing

  • Get macOS
  • Launch dev
  • Change something in src/main/index.js and save (e.g. add a blank line
  • Ensure old Electron processed killed and new one works fine

Desktop

  • OS: macOS
  • OS Version: 15.7.7 (24G720)
  • FreeTube version:

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 6, 2026 08:33
@github-actions github-actions Bot added PR: dependencies Pull requests that update a dependency file PR: waiting for review For PRs that are complete, tested, and ready for review labels Jul 6, 2026
@PikachuEXE PikachuEXE changed the title https://github.com/FreeTubeApp/FreeTube/pull/9378 Fix dev restart not killing old process in macOS Jul 6, 2026
@github-actions github-actions Bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@PikachuEXE PikachuEXE added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 6, 2026
@PikachuEXE

Copy link
Copy Markdown
Member Author

Last reviewer please let #9378 be merged first (as this includes that

@github-actions github-actions Bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jul 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions

Copy link
Copy Markdown
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@PikachuEXE PikachuEXE added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 10, 2026
@PikachuEXE

Copy link
Copy Markdown
Member Author

@ChunkyProgrammer ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: dependencies Pull requests that update a dependency file PR: waiting for review For PRs that are complete, tested, and ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants