Closed
Description
opened on Jul 7, 2023
Describe the bug
The top process is killed, but it's immediate child is not killed - it's just re-parented.
htop
output
Before stopping:
│ │ └─ /nix/store/l43bdmxxlkrzwic3q24ik366qyqg3s1g-nodejs-18.16.1/bin/node /nix/store/m82k0dfkwp7m8zyshvrg2pdca67szlgw-pnpm-8.6.5/bin/.pnpm-wrapped vavite-loader vite dev
│ │ └─ node ./node_modules/.bin/../@vavite/node-loader/cli.js vite dev
│ │ └─ node ./node_modules/.bin/../vite/bin/vite.js dev
After stopping:
│ │ └─ node ./node_modules/.bin/../@vavite/node-loader/cli.js vite dev
│ │ └─ node ./node_modules/.bin/../vite/bin/vite.js dev
To Reproduce
Steps to reproduce the behavior:
- Clone repro
pnpm install
- In vscode, click the green play button to run the
launch.json
config. - Click on the stop button.
- Click the green play button again.
- Observe error in console
Error: Port 3000 is already in use
Log File
vscode-debugadapter-a10b2212.json.gz
VS Code Version: 1.79.2
Extension: ms-vscode.js-debug-nightly v2023.6.2117
Additional context
If setting "killBehavior": "polite"
, the top two processes are killed. But the third (node ./node_modules/.bin/../vite/bin/vite.js dev
seen in output above) is left running.
❯ nix-shell -p nix-info --run "nix-info -m" 04:09:18
- system: `"x86_64-linux"`
- host os: `Linux 6.1.36, NixOS, 23.11 (Tapir), 23.11pre501260.78419edadf0`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.15.1`
- channels(root): `"nixos, nixos-unstable"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Activity