/libuv/src/win/ |
H A D | signal.c | 57 if (w1->signum < w2->signum) return -1; in uv__signal_compare() 58 if (w1->signum > w2->signum) return 1; in uv__signal_compare() 89 lookup.signum = signum; in RB_GENERATE_STATIC() 93 handle != NULL && handle->signum == signum; in RB_GENERATE_STATIC() 150 handle->signum = 0; in uv_signal_init() 164 if (handle->signum == 0) in uv_signal_stop() 174 handle->signum = 0; in uv_signal_stop() 198 if (signum <= 0 || signum >= NSIG) in uv__signal_start() 205 if (signum == handle->signum) { in uv__signal_start() 211 if (handle->signum != 0) { in uv__signal_start() [all …]
|
H A D | process.c | 1158 static int uv__kill(HANDLE process_handle, int signum) { in uv__kill() argument 1159 if (signum < 0 || signum >= NSIG) { in uv__kill() 1170 if (signum == SIGQUIT) { in uv__kill() 1284 switch (signum) { in uv__kill() 1354 int uv_process_kill(uv_process_t* process, int signum) { in uv_process_kill() argument 1361 err = uv__kill(process->process_handle, signum); in uv_process_kill() 1366 process->exit_signal = signum; in uv_process_kill() 1372 int uv_kill(int pid, int signum) { in uv_kill() argument 1393 err = uv__kill(process_handle, signum); in uv_kill()
|
H A D | internal.h | 215 int uv__signal_dispatch(int signum);
|
/libuv/src/unix/ |
H A D | signal.c | 37 int signum; member 170 lookup.signum = signum; in uv__signal_first_handle() 176 if (handle != NULL && handle->signum == signum) in uv__signal_first_handle() 197 handle != NULL && handle->signum == signum; in uv__signal_handler() 201 msg.signum = signum; in uv__signal_handler() 383 if (signum == 0) in uv__signal_start() 391 if (signum == handle->signum) { in uv__signal_start() 418 handle->signum = signum; in uv__signal_start() 476 if (msg->signum == handle->signum) { in uv__signal_event() 506 if (w1->signum < w2->signum) return -1; in uv__signal_compare() [all …]
|
H A D | process.c | 75 static void uv__chld(uv_signal_t* handle, int signum) { in uv__chld() argument 76 assert(signum == SIGCHLD); in uv__chld() 1083 int uv_process_kill(uv_process_t* process, int signum) { in uv_process_kill() argument 1084 return uv_kill(process->pid, signum); in uv_process_kill() 1088 int uv_kill(int pid, int signum) { in uv_kill() argument 1089 if (kill(pid, signum)) { in uv_kill()
|
/libuv/test/ |
H A D | test-signal.c | 47 static void signum_test_cb(uv_signal_t* handle, int signum) { in signum_test_cb() argument 89 int signum; member 96 int signum; member 101 static void signal_cb(uv_signal_t* handle, int signum) { in signal_cb() argument 103 ASSERT_EQ(signum, ctx->signum); in signal_cb() 116 ASSERT_EQ(signum, ctx->signum); in signal_cb_one_shot() 126 raise(ctx->signum); in timer_cb() 134 int signum, in start_watcher() argument 138 ctx->signum = signum; in start_watcher() 145 ASSERT_OK(uv_signal_start(&ctx->handle, signal_cb, signum)); in start_watcher() [all …]
|
H A D | test-signal-pending-on-close.c | 37 static void stop_loop_cb(uv_signal_t* signal, int signum) { in stop_loop_cb() argument 38 ASSERT_EQ(signum, SIGPIPE); in stop_loop_cb() 42 static void signal_cb(uv_signal_t* signal, int signum) { in signal_cb() argument
|
H A D | test-signal-multiple-loops.c | 68 static void signal1_cb(uv_signal_t* handle, int signum) { in signal1_cb() argument 69 ASSERT_EQ(signum, SIGUSR1); in signal1_cb() 75 static void signal2_cb(uv_signal_t* handle, int signum) { in signal2_cb() argument 76 ASSERT_EQ(signum, SIGUSR2); in signal2_cb() 159 static void signal_unexpected_cb(uv_signal_t* handle, int signum) { in signal_unexpected_cb() argument
|
H A D | test-eintr-handling.c | 60 static void sig_func(uv_signal_t* handle, int signum) { in sig_func() argument
|
H A D | test-fork.c | 239 void fork_signal_to_child_cb(uv_signal_t* handle, int signum) in fork_signal_to_child_cb() argument 241 fork_signal_cb_called = signum; in fork_signal_to_child_cb()
|
H A D | test-fs.c | 3779 static void sig_func(uv_signal_t* handle, int signum) { in sig_func() argument
|
/libuv/docs/code/signal/ |
H A D | main.c | 15 void signal_handler(uv_signal_t *handle, int signum) in signal_handler() argument 17 printf("Signal received: %d\n", signum); in signal_handler()
|
/libuv/docs/src/ |
H A D | signal.rst | 64 .. c:type:: void (*uv_signal_cb)(uv_signal_t* handle, int signum) 72 .. c:member:: int uv_signal_t.signum 86 .. c:function:: int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum) 90 .. c:function:: int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum)
|
H A D | process.rst | 275 .. c:function:: int uv_process_kill(uv_process_t* handle, int signum) 280 .. c:function:: int uv_kill(int pid, int signum)
|
/libuv/docs/code/queue-cancel/ |
H A D | main.c | 33 void signal_handler(uv_signal_t *req, int signum) in signal_handler() argument
|
/libuv/include/ |
H A D | uv.h | 415 typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum); 1161 UV_EXTERN int uv_process_kill(uv_process_t*, int signum); 1162 UV_EXTERN int uv_kill(int pid, int signum); 1701 int signum; member 1708 int signum); 1711 int signum);
|
/libuv/docs/src/guide/ |
H A D | processes.rst | 127 uv_err_t uv_kill(int pid, int signum);
|