nv-facutil-proc-signal
v1.0.1
Published
nv-facutil-proc-signal =============== - simple-util for send/recv signal SIGUSR1/SIGUSR2 - simple wrap of signal\_wrap
Downloads
2
Readme
nv-facutil-proc-signal
- simple-util for send/recv signal SIGUSR1/SIGUSR2
- simple wrap of signal_wrap
install
- npm install nv-facutil-proc-signal
usage
const x = require("nv-facutil-proc-signal");
example
var tsk = async function() {
while(true){
await x.SIGIO;
console.log("received")
}
}
tsk();
x.send_SIGIO_to_self();
/*
> x.send_SIGIO_to_self()
true
> received
> x.send_SIGIO_to_self()
true
> received
*/
var tsk = async function() {
while(true){
let r = await x.SIGUSR1;
console.log("received",r)
}
}
tsk();
x.send_SIGUSR1_to_self()
/*
> x.send_SIGUSR1_to_self()
true
> received 857041535448102n
*/
APIS
_send(dst_pid,signum)
send_SIGHUP: [Function (anonymous)],
send_SIGHUP_to_self: [Function (anonymous)],
send_SIGHUP_to_parent: [Function (anonymous)],
send_SIGINT: [Function (anonymous)],
send_SIGINT_to_self: [Function (anonymous)],
send_SIGINT_to_parent: [Function (anonymous)],
send_SIGQUIT: [Function (anonymous)],
send_SIGQUIT_to_self: [Function (anonymous)],
send_SIGQUIT_to_parent: [Function (anonymous)],
send_SIGILL: [Function (anonymous)],
send_SIGILL_to_self: [Function (anonymous)],
send_SIGILL_to_parent: [Function (anonymous)],
send_SIGTRAP: [Function (anonymous)],
send_SIGTRAP_to_self: [Function (anonymous)],
send_SIGTRAP_to_parent: [Function (anonymous)],
send_SIGABRT: [Function (anonymous)],
send_SIGABRT_to_self: [Function (anonymous)],
send_SIGABRT_to_parent: [Function (anonymous)],
send_SIGIOT: [Function (anonymous)],
send_SIGIOT_to_self: [Function (anonymous)],
send_SIGIOT_to_parent: [Function (anonymous)],
send_SIGBUS: [Function (anonymous)],
send_SIGBUS_to_self: [Function (anonymous)],
send_SIGBUS_to_parent: [Function (anonymous)],
send_SIGFPE: [Function (anonymous)],
send_SIGFPE_to_self: [Function (anonymous)],
send_SIGFPE_to_parent: [Function (anonymous)],
send_SIGKILL: [Function (anonymous)],
send_SIGKILL_to_self: [Function (anonymous)],
send_SIGKILL_to_parent: [Function (anonymous)],
send_SIGUSR1: [Function (anonymous)],
send_SIGUSR1_to_self: [Function (anonymous)],
send_SIGUSR1_to_parent: [Function (anonymous)],
send_SIGSEGV: [Function (anonymous)],
send_SIGSEGV_to_self: [Function (anonymous)],
send_SIGSEGV_to_parent: [Function (anonymous)],
send_SIGUSR2: [Function (anonymous)],
send_SIGUSR2_to_self: [Function (anonymous)],
send_SIGUSR2_to_parent: [Function (anonymous)],
send_SIGPIPE: [Function (anonymous)],
send_SIGPIPE_to_self: [Function (anonymous)],
send_SIGPIPE_to_parent: [Function (anonymous)],
send_SIGALRM: [Function (anonymous)],
send_SIGALRM_to_self: [Function (anonymous)],
send_SIGALRM_to_parent: [Function (anonymous)],
send_SIGTERM: [Function (anonymous)],
send_SIGTERM_to_self: [Function (anonymous)],
send_SIGTERM_to_parent: [Function (anonymous)],
send_SIGCHLD: [Function (anonymous)],
send_SIGCHLD_to_self: [Function (anonymous)],
send_SIGCHLD_to_parent: [Function (anonymous)],
send_SIGSTKFLT: [Function (anonymous)],
send_SIGSTKFLT_to_self: [Function (anonymous)],
send_SIGSTKFLT_to_parent: [Function (anonymous)],
send_SIGCONT: [Function (anonymous)],
send_SIGCONT_to_self: [Function (anonymous)],
send_SIGCONT_to_parent: [Function (anonymous)],
send_SIGSTOP: [Function (anonymous)],
send_SIGSTOP_to_self: [Function (anonymous)],
send_SIGSTOP_to_parent: [Function (anonymous)],
send_SIGTSTP: [Function (anonymous)],
send_SIGTSTP_to_self: [Function (anonymous)],
send_SIGTSTP_to_parent: [Function (anonymous)],
send_SIGTTIN: [Function (anonymous)],
send_SIGTTIN_to_self: [Function (anonymous)],
send_SIGTTIN_to_parent: [Function (anonymous)],
send_SIGTTOU: [Function (anonymous)],
send_SIGTTOU_to_self: [Function (anonymous)],
send_SIGTTOU_to_parent: [Function (anonymous)],
send_SIGURG: [Function (anonymous)],
send_SIGURG_to_self: [Function (anonymous)],
send_SIGURG_to_parent: [Function (anonymous)],
send_SIGXCPU: [Function (anonymous)],
send_SIGXCPU_to_self: [Function (anonymous)],
send_SIGXCPU_to_parent: [Function (anonymous)],
send_SIGXFSZ: [Function (anonymous)],
send_SIGXFSZ_to_self: [Function (anonymous)],
send_SIGXFSZ_to_parent: [Function (anonymous)],
send_SIGVTALRM: [Function (anonymous)],
send_SIGVTALRM_to_self: [Function (anonymous)],
send_SIGVTALRM_to_parent: [Function (anonymous)],
send_SIGPROF: [Function (anonymous)],
send_SIGPROF_to_self: [Function (anonymous)],
send_SIGPROF_to_parent: [Function (anonymous)],
send_SIGWINCH: [Function (anonymous)],
send_SIGWINCH_to_self: [Function (anonymous)],
send_SIGWINCH_to_parent: [Function (anonymous)],
send_SIGIO: [Function (anonymous)],
send_SIGIO_to_self: [Function (anonymous)],
send_SIGIO_to_parent: [Function (anonymous)],
send_SIGPOLL: [Function (anonymous)],
send_SIGPOLL_to_self: [Function (anonymous)],
send_SIGPOLL_to_parent: [Function (anonymous)],
send_SIGPWR: [Function (anonymous)],
send_SIGPWR_to_self: [Function (anonymous)],
send_SIGPWR_to_parent: [Function (anonymous)],
send_SIGSYS: [Function (anonymous)],
send_SIGSYS_to_self: [Function (anonymous)],
send_SIGSYS_to_parent: [Function (anonymous)],
SIGHUP: Signal [SIGHUP] {},
SIGINT: Signal [SIGINT] {},
SIGQUIT: Signal [SIGQUIT] {},
SIGILL: Signal [SIGILL] {},
SIGTRAP: Signal [SIGTRAP] {},
SIGABRT: Signal [SIGIOT] {},
SIGIOT: Signal [SIGIOT] {},
SIGBUS: Signal [SIGBUS] {},
SIGFPE: Signal [SIGFPE] {},
SIGKILL: Signal [SIGKILL] {},
SIGUSR1: Signal [SIGUSR1] {},
SIGSEGV: Signal [SIGSEGV] {},
SIGUSR2: Signal [SIGUSR2] {},
SIGPIPE: Signal [SIGPIPE] {},
SIGALRM: Signal [SIGALRM] {},
SIGTERM: Signal [SIGTERM] {},
SIGCHLD: Signal [SIGCHLD] {},
SIGSTKFLT: Signal [SIGSTKFLT] {},
SIGCONT: Signal [SIGCONT] {},
SIGSTOP: Signal [SIGSTOP] {},
SIGTSTP: Signal [SIGTSTP] {},
SIGTTIN: Signal [SIGTTIN] {},
SIGTTOU: Signal [SIGTTOU] {},
SIGURG: Signal [SIGURG] {},
SIGXCPU: Signal [SIGXCPU] {},
SIGXFSZ: Signal [SIGXFSZ] {},
SIGVTALRM: Signal [SIGVTALRM] {},
SIGPROF: Signal [SIGPROF] {},
SIGWINCH: Signal [SIGWINCH] {},
SIGIO: Signal [SIGPOLL] {},
SIGPOLL: Signal [SIGPOLL] {},
SIGPWR: Signal [SIGPWR] {},
SIGSYS: Signal [SIGSYS] {},
METHODS
x.SIGIO.asyncReset x.SIGIO.getAsyncId x.SIGIO.getProviderType
x.SIGIO.hasRef x.SIGIO.ref x.SIGIO.unref
x.SIGIO.close x.SIGIO.is_on x.SIGIO.onsignal
x.SIGIO.signame_ x.SIGIO.signum_ x.SIGIO.start x.SIGIO.stop
x.SIGIO.then
x.SIGIO.domain
LICENSE
- ISC