Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): stopping a WSL backend waits for the Linux server to exit #22478

ClosedSunkenInTime(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/22478/headopened View on GitHub

Showing 9 changed files with 28 additions and 22 deletions (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 1 deletionapps/desktop/src/app/DesktopApp.tsModified
View file
@@ -153,7 +153,7 @@
const instances = yield* pool.list;
yield* Effect.forEach(
instances,
- (instance) => instance.stop({ timeout: Duration.seconds(5) }),
+ (instance) => instance.stop({ timeout: Duration.seconds(7) }),
{ concurrency: "unbounded" },
18 additions and 15 deletionsapps/desktop/src/backend/DesktopBackendConfiguration.test.tsModified
View file
@@ -18,6 +18,7 @@
import * as DesktopAppSettings from "../settings/DesktopAppSettings.ts";
import * as DesktopWslEnvironment from "../wsl/DesktopWslEnvironment.ts";
import * as DesktopWslServerTree from "../wsl/DesktopWslServerTree.ts";
+import { wrapWslServerLaunch } from "../wsl/wslServerProcess.ts";
​
const layerShellEnvironment = (prepared = true) =>
Layer.succeed(DesktopShellEnvironment.DesktopShellEnvironment, {
@@ -432,11 +433,13 @@
"-d",
"Ubuntu",
"--exec",
- "env",
- `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${resolvedPath}`,
- `${linuxAppRoot}/t3`,
- "--bootstrap-fd",