Files
bun.sh/test/js/node/process/process-on-fixture.ts
2024-12-17 16:51:19 -08:00

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();