comparison src/event/modules/ngx_rtsig_module.c @ 380:5ce6561246a5

nginx-0.0.7-2004-07-07-10:15:04 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 07 Jul 2004 06:15:04 +0000
parents 744ccb59062d
children 02a511569afb
comparison
equal deleted inserted replaced
379:73688d5d7fc3 380:5ce6561246a5
103 NULL, /* delete an event */ 103 NULL, /* delete an event */
104 NULL, /* enable an event */ 104 NULL, /* enable an event */
105 NULL, /* disable an event */ 105 NULL, /* disable an event */
106 ngx_rtsig_add_connection, /* add an connection */ 106 ngx_rtsig_add_connection, /* add an connection */
107 ngx_rtsig_del_connection, /* delete an connection */ 107 ngx_rtsig_del_connection, /* delete an connection */
108 NULL, /* process the changes */
108 ngx_rtsig_process_events, /* process the events */ 109 ngx_rtsig_process_events, /* process the events */
109 ngx_rtsig_init, /* init the events */ 110 ngx_rtsig_init, /* init the events */
110 ngx_rtsig_done, /* done the events */ 111 ngx_rtsig_done, /* done the events */
111 } 112 }
112 113
116 NGX_MODULE, 117 NGX_MODULE,
117 &ngx_rtsig_module_ctx, /* module context */ 118 &ngx_rtsig_module_ctx, /* module context */
118 ngx_rtsig_commands, /* module directives */ 119 ngx_rtsig_commands, /* module directives */
119 NGX_EVENT_MODULE, /* module type */ 120 NGX_EVENT_MODULE, /* module type */
120 NULL, /* init module */ 121 NULL, /* init module */
121 NULL /* init child */ 122 NULL /* init process */
122 }; 123 };
123 124
124 125
125 static ngx_int_t ngx_rtsig_init(ngx_cycle_t *cycle) 126 static ngx_int_t ngx_rtsig_init(ngx_cycle_t *cycle)
126 { 127 {
490 "sigaction(%d, SIG_DFL) failed", rtscf->signo + 1); 491 "sigaction(%d, SIG_DFL) failed", rtscf->signo + 1);
491 } 492 }
492 493
493 overflow = 1; 494 overflow = 1;
494 overflow_current = 0; 495 overflow_current = 0;
495 ngx_event_actions.process = ngx_rtsig_process_overflow; 496 ngx_event_actions.process_events = ngx_rtsig_process_overflow;
496 497
497 return NGX_ERROR; 498 return NGX_ERROR;
498 499
499 } else if (signo != -1) { 500 } else if (signo != -1) {
500 ngx_accept_mutex_unlock(); 501 ngx_accept_mutex_unlock();
688 689
689 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, 690 ngx_log_error(NGX_LOG_INFO, cycle->log, 0,
690 "rt signal queue overflow recovered"); 691 "rt signal queue overflow recovered");
691 692
692 overflow = 0; 693 overflow = 0;
693 ngx_event_actions.process = ngx_rtsig_process_events; 694 ngx_event_actions.process_events = ngx_rtsig_process_events;
694 695
695 return NGX_OK; 696 return NGX_OK;
696 } 697 }
697 698
698 699