We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f41206 commit ec0c474Copy full SHA for ec0c474
1 file changed
src/main.ts
@@ -74,7 +74,8 @@ async function runSupervisor(): Promise<void> {
74
logger.info("スーパーバイザー起動");
75
76
const spawnWorker = (): void => {
77
- const worker = Bun.spawn([process.execPath, ...process.argv.slice(1)], {
+ const execPath = process.argv[0] ?? process.execPath;
78
+ const worker = Bun.spawn([execPath, ...process.argv.slice(1)], {
79
env: { ...process.env, [WORKER_ENV_KEY]: "1" },
80
stdout: "inherit",
81
stderr: "inherit",
0 commit comments