GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(cli): stop the probe's process group when an in-process check fails · voidzero-dev/vite-plus@1538e35

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_dev_local_signal
    • probe-in-process.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_dev_local_signal/probe-in-process.mjs‎

Copy file name to clipboardExpand all lines: crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_dev_local_signal/probe-in-process.mjs
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ async function run(setting) {
131131
}
132132
}
133133

134-
for (const setting of settings) {
135-
await run(setting);
134+
try {
135+
for (const setting of settings) {
136+
await run(setting);
137+
}
138+
} catch (error) {
139+
console.error(error);
140+
process.exitCode = 1;
141+
// The runner starts the probe in its own group. When Vite runs as a child
142+
// again, SIGKILL to the launcher leaves Vite running, so stop the group.
143+
process.kill(-process.pid, 'SIGKILL');
136144
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.