mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
Teardown server on SIGTERM
This commit is contained in:
parent
64716dd3b0
commit
68660775ab
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue