mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Teardown server on SIGTERM
This commit is contained in:
@@ -98,6 +98,7 @@ export async function launch(_args: string[]): Promise<void> {
|
||||
server.stdout.on('data', e => console.log('Server stdout: ' + e));
|
||||
process.on('exit', teardown);
|
||||
process.on('SIGINT', teardown);
|
||||
process.on('SIGTERM', teardown);
|
||||
endpoint = await waitForEndpoint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user