@esm2cjs/human-signals
Version:
Human-friendly process signals. This is a fork of ehmicky/human-signals, but with CommonJS support.
16 lines (13 loc) • 352 B
JavaScript
export const getRealtimeSignals=()=>{
const length=SIGRTMAX-SIGRTMIN+1;
return Array.from({length},getRealtimeSignal)
};
const getRealtimeSignal=(value,index)=>({
name:`SIGRT${index+1}`,
number:SIGRTMIN+index,
action:"terminate",
description:"Application-specific signal (realtime)",
standard:"posix"
});
const SIGRTMIN=34;
export const SIGRTMAX=64;