fd=4をipcに使うように

This commit is contained in:
rinsuki 2019-10-25 06:27:00 +09:00
parent 9cc57cd011
commit 8119e4a467
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export function connectStream(user: any, channel: string, listener: (message: Re
export function launchServer(callbackSpawnedProcess: (p: childProcess.ChildProcess) => void, moreProcess: () => Promise<void> = async () => {}) { export function launchServer(callbackSpawnedProcess: (p: childProcess.ChildProcess) => void, moreProcess: () => Promise<void> = async () => {}) {
return (done: (err?: Error) => any) => { return (done: (err?: Error) => any) => {
const p = childProcess.spawn('node', [__dirname + '/../index.js'], { const p = childProcess.spawn('node', [__dirname + '/../index.js'], {
stdio: ['inherit', 'inherit', 'ipc'], stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
env: { NODE_ENV: 'test', PATH: process.env.PATH } env: { NODE_ENV: 'test', PATH: process.env.PATH }
}); });
callbackSpawnedProcess(p); callbackSpawnedProcess(p);