Home
last modified time | relevance | path

Searched refs:signals (Results 1 – 12 of 12) sorted by relevance

/unit/src/
H A Dnxt_signal.c32 nxt_event_signals_t *signals; in nxt_event_engine_signals() local
34 signals = nxt_zalloc(sizeof(nxt_event_signals_t)); in nxt_event_engine_signals()
35 if (signals == NULL) { in nxt_event_engine_signals()
39 signals->sigev = sigev; in nxt_event_engine_signals()
49 sigemptyset(&signals->sigmask); in nxt_event_engine_signals()
52 sigaddset(&signals->sigmask, sigev->signo); in nxt_event_engine_signals()
61 return signals; in nxt_event_engine_signals()
65 nxt_free(signals); in nxt_event_engine_signals()
116 if (engine->signals->process == nxt_pid) { in nxt_signal_thread_start()
143 engine->signals->process = nxt_pid; in nxt_signal_thread_start()
[all …]
H A Dnxt_event_engine.c43 const nxt_event_interface_t *interface, const nxt_sig_event_t *signals, in nxt_event_engine_create() argument
96 if (signals != NULL) { in nxt_event_engine_create()
97 engine->signals = nxt_event_engine_signals(signals); in nxt_event_engine_create()
98 if (engine->signals == NULL) { in nxt_event_engine_create()
102 engine->signals->handler = nxt_event_engine_signal_handler; in nxt_event_engine_create()
153 nxt_free(engine->signals); in nxt_event_engine_create()
368 for (sigev = task->thread->engine->signals->sigev; in nxt_event_engine_signal_handler()
430 if (engine->signals != NULL) { in nxt_event_engine_change()
440 engine->signals->process = 0; in nxt_event_engine_change()
453 nxt_free(engine->signals); in nxt_event_engine_free()
H A Dnxt_event_engine.h466 nxt_event_signals_t *signals; member
493 const nxt_event_interface_t *interface, const nxt_sig_event_t *signals,
H A Dnxt_process.h150 const nxt_sig_event_t *signals; member
H A Dnxt_epoll_engine.c263 if (engine->signals != NULL) { in nxt_epoll_create()
671 if (sigprocmask(SIG_BLOCK, &engine->signals->sigmask, NULL) != 0) { in nxt_epoll_add_signal()
685 fd = signalfd(-1, &engine->signals->sigmask, 0); in nxt_epoll_add_signal()
701 engine->u.epoll.signalfd.data = engine->signals->handler; in nxt_epoll_add_signal()
H A Dnxt_eventport_engine.c118 if (engine->signals != NULL) { in nxt_eventport_create()
119 engine->u.eventport.signal_handler = engine->signals->handler; in nxt_eventport_create()
H A Dnxt_application.c130 .signals = nxt_process_signals,
141 .signals = nxt_prototype_signals,
152 .signals = nxt_process_signals,
H A Dnxt_process.c387 engine->signals->sigev = init->signals; in nxt_process_setup()
H A Dnxt_kqueue_engine.c201 if (engine->signals != NULL) { in nxt_kqueue_create()
202 for (sigev = engine->signals->sigev; sigev->signo != 0; sigev++) { in nxt_kqueue_create()
H A Dnxt_php_sapi.c394 #error PHP is built with thread safety and broken signals. in nxt_php_setup()
H A Dnxt_controller.c152 .signals = nxt_process_signals,
H A Dnxt_router.c314 .signals = nxt_process_signals,