Skip to content

Fix dev restart not killing old process in macOS#9380

Open
PikachuEXE wants to merge 5 commits into
FreeTubeApp:developmentfrom
PikachuEXE:dev/fix-dev-restart-macos
Open

Fix dev restart not killing old process in macOS#9380
PikachuEXE wants to merge 5 commits 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

dependabot Bot and others added 3 commits July 6, 2026 02:41
Bumps the webpack group with 3 updates in the / directory: [webpack](https://github.com/webpack/webpack), [webpack-cli](https://github.com/webpack/webpack-cli) and [webpack-dev-server](https://github.com/webpack/webpack-dev-server).


Updates `webpack` from 5.108.3 to 5.108.4
- [Release notes](https://github.com/webpack/webpack/releases)
- [Changelog](https://github.com/webpack/webpack/blob/main/CHANGELOG.md)
- [Commits](webpack/webpack@v5.108.3...v5.108.4)

Updates `webpack-cli` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.1.0...webpack-cli@7.2.1)

Updates `webpack-dev-server` from 5.2.5 to 6.0.0
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/main/CHANGELOG.md)
- [Commits](webpack/webpack-dev-server@v5.2.5...v6.0.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.108.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: webpack
- dependency-name: webpack-cli
  dependency-version: 7.2.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: webpack
- dependency-name: webpack-dev-server
  dependency-version: 6.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: webpack
...

Signed-off-by: dependabot[bot] <support@github.com>
@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.

…e0022

* development:
  Bump the github-codeql-action group with 2 updates (FreeTubeApp#9376)
  Bump the eslint group with 2 updates (FreeTubeApp#9377)
  Bump swiper from 12.2.0 to 14.0.1 (FreeTubeApp#9349)

# Conflicts:
#	pnpm-lock.yaml
@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

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