[@babel/node] Forward the signal SIGTERM as well (#13784)

This commit is contained in:
Julien Wajsberg 2021-09-25 10:18:10 +02:00 committed by GitHub
parent 8960f9e68e
commit 6818b22dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,5 +104,6 @@ getV8Flags(async function (err, v8Flags) {
proc.on("message", message => process.send(message)); proc.on("message", message => process.send(message));
} }
process.on("SIGINT", () => proc.kill("SIGINT")); process.on("SIGINT", () => proc.kill("SIGINT"));
process.on("SIGTERM", () => proc.kill("SIGTERM"));
} }
}); });