()
| 334 | } |
| 335 | |
| 336 | private spawn(): cp.ChildProcess { |
| 337 | return cp.fork(path.join(__dirname, "entry"), { |
| 338 | env: { |
| 339 | ...process.env, |
| 340 | CODE_SERVER_PARENT_PID: process.pid.toString(), |
| 341 | NODE_EXEC_PATH: process.execPath, |
| 342 | }, |
| 343 | stdio: ["pipe", "pipe", "pipe", "ipc"], |
| 344 | }) |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * Wait for a handshake from the child then reply. |