Home
last modified time | relevance | path

Searched refs:signo (Results 1 – 7 of 7) sorted by relevance

/unit/src/
H A Dnxt_signal.c25 static nxt_int_t nxt_signal_action(int signo, void (*handler)(int));
51 while (sigev->signo != 0) { in nxt_event_engine_signals()
52 sigaddset(&signals->sigmask, sigev->signo); in nxt_event_engine_signals()
72 nxt_signal_action(int signo, void (*handler)(int)) in nxt_signal_action() argument
80 if (sigaction(signo, &sa, NULL) == 0) { in nxt_signal_action()
91 nxt_signal_handler(int signo) in nxt_signal_handler() argument
102 nxt_main_log_error(NXT_LOG_INFO, "signal handler: %d", signo); in nxt_signal_handler()
104 nxt_event_engine_signal(thr->engine, signo); in nxt_signal_handler()
155 int signo; in nxt_signal_thread() local
167 err = sigwait(&engine->signals->sigmask, &signo); in nxt_signal_thread()
[all …]
H A Dnxt_event_engine.c271 nxt_debug(&engine->task, "event engine signal:%ui", signo); in nxt_event_engine_signal()
279 engine->event.signal(engine, signo); in nxt_event_engine_signal()
283 buf = (u_char) signo; in nxt_event_engine_signal()
292 u_char signo; in nxt_event_engine_signal_pipe() local
307 signo = buf[i]; in nxt_event_engine_signal_pipe()
309 nxt_debug(task, "engine pipe signo:%d", signo); in nxt_event_engine_signal_pipe()
311 if (signo == 0) { in nxt_event_engine_signal_pipe()
363 uintptr_t signo; in nxt_event_engine_signal_handler() local
366 signo = (uintptr_t) obj; in nxt_event_engine_signal_handler()
369 sigev->signo != 0; in nxt_event_engine_signal_handler()
[all …]
H A Dnxt_eventport_engine.c53 static void nxt_eventport_signal(nxt_event_engine_t *engine, nxt_uint_t signo);
436 nxt_eventport_signal(nxt_event_engine_t *engine, nxt_uint_t signo) in nxt_eventport_signal() argument
442 nxt_debug(&engine->task, "port_send(%d, %ui)", port, signo); in nxt_eventport_signal()
444 if (port_send(port, signo, NULL) != 0) { in nxt_eventport_signal()
453 int n, events, signo; in nxt_eventport_poll() local
594 signo = event->portev_events; in nxt_eventport_poll()
596 handler = (signo == 0) ? engine->u.eventport.post_handler in nxt_eventport_poll()
600 &engine->task, (void *) (uintptr_t) signo, NULL); in nxt_eventport_poll()
H A Dnxt_signal.h12 int signo; member
H A Dnxt_kqueue_engine.c97 static void nxt_kqueue_signal(nxt_event_engine_t *engine, nxt_uint_t signo);
202 for (sigev = engine->signals->sigev; sigev->signo != 0; sigev++) { in nxt_kqueue_create()
564 int signo; in nxt_kqueue_add_signal() local
568 signo = sigev->signo; in nxt_kqueue_add_signal()
579 sa.sa_handler = (signo == SIGCHLD) ? SIG_DFL : SIG_IGN; in nxt_kqueue_add_signal()
581 if (sigaction(signo, &sa, NULL) != 0) { in nxt_kqueue_add_signal()
582 nxt_alert(&engine->task, "sigaction(%d) failed %E", signo, nxt_errno); in nxt_kqueue_add_signal()
588 engine->u.kqueue.fd, signo, sigev->name); in nxt_kqueue_add_signal()
590 kev.ident = signo; in nxt_kqueue_add_signal()
637 nxt_kqueue_signal(nxt_event_engine_t *engine, nxt_uint_t signo) in nxt_kqueue_signal() argument
H A Dnxt_event_engine.h153 nxt_uint_t signo);
503 nxt_uint_t signo);
H A Dnxt_epoll_engine.c80 static void nxt_epoll_signal(nxt_event_engine_t *engine, nxt_uint_t signo);
847 nxt_epoll_signal(nxt_event_engine_t *engine, nxt_uint_t signo) in nxt_epoll_signal() argument