mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
27 lines
584 B
TypeScript
Generated
27 lines
584 B
TypeScript
Generated
export function initialize() {
|
|
const handler = () => {
|
|
console.log("SIGINT");
|
|
};
|
|
|
|
const handler2 = () => {
|
|
console.log("SIGTERM");
|
|
};
|
|
|
|
process.on("SIGINT", handler);
|
|
process.on("SIGTERM", handler2);
|
|
process.off("SIGTERM", handler2);
|
|
process.off("SIGINT", handler);
|
|
|
|
process.on("SIGINT", handler);
|
|
process.on("SIGTERM", handler2);
|
|
process.off("SIGTERM", handler2);
|
|
process.off("SIGINT", handler);
|
|
|
|
process.on("SIGINT", handler);
|
|
process.on("SIGTERM", handler2);
|
|
process.off("SIGTERM", handler2);
|
|
process.off("SIGINT", handler);
|
|
}
|
|
|
|
initialize();
|