提交 68660775 编写于 作者: D Daniel Imms

Teardown server on SIGTERM

上级 64716dd3
...@@ -98,6 +98,7 @@ export async function launch(_args: string[]): Promise<void> { ...@@ -98,6 +98,7 @@ export async function launch(_args: string[]): Promise<void> {
server.stdout.on('data', e => console.log('Server stdout: ' + e)); server.stdout.on('data', e => console.log('Server stdout: ' + e));
process.on('exit', teardown); process.on('exit', teardown);
process.on('SIGINT', teardown); process.on('SIGINT', teardown);
process.on('SIGTERM', teardown);
endpoint = await waitForEndpoint(); endpoint = await waitForEndpoint();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册