Skip to content

Child process not terminated #1747

Closed
@thenbe

Description

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:

2023-07-07-15-32-51

│  │  └─ /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:

2023-07-07-15-36-06

│  │     └─ 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:

  1. Clone repro
  2. pnpm install
  3. In vscode, click the green play button to run the launch.json config.
  4. Click on the stop button.
  5. Click the green play button again.
  6. 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

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

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions