Merge branch 'main' into jsjoeio/vscode-1.66
This commit is contained in:
commit
7cea69df1c
@ -203,8 +203,9 @@ class ChildProcess extends Process {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent process wrapper that spawns the child process and performs a handshake
|
* Parent process wrapper that spawns the child process and performs a handshake
|
||||||
* with it. Will relaunch the child if it receives a SIGUSR1 or is asked to by
|
* with it. Will relaunch the child if it receives a SIGUSR1 or SIGUSR2 or is
|
||||||
* the child. If the child otherwise exits the parent will also exit.
|
* asked to by the child. If the child otherwise exits the parent will also
|
||||||
|
* exit.
|
||||||
*/
|
*/
|
||||||
export class ParentProcess extends Process {
|
export class ParentProcess extends Process {
|
||||||
public logger = logger.named(`parent:${process.pid}`)
|
public logger = logger.named(`parent:${process.pid}`)
|
||||||
@ -227,6 +228,11 @@ export class ParentProcess extends Process {
|
|||||||
this.relaunch()
|
this.relaunch()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
process.on("SIGUSR2", async () => {
|
||||||
|
this.logger.info("Received SIGUSR2; hotswapping")
|
||||||
|
this.relaunch()
|
||||||
|
})
|
||||||
|
|
||||||
const opts = {
|
const opts = {
|
||||||
size: "10M",
|
size: "10M",
|
||||||
maxFiles: 10,
|
maxFiles: 10,
|
||||||
|
Reference in New Issue
Block a user