Mercurial > hg > nginx
comparison src/os/win32/ngx_service.c @ 5759:a1caf3989b49
Style: keep return type and function name on different lines.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
author | Piotr Sikora <piotr@cloudflare.com> |
---|---|
date | Tue, 08 Jul 2014 03:03:14 -0700 |
parents | c5ec6944de98 |
children |
comparison
equal
deleted
inserted
replaced
5758:f3df4e420ae7 | 5759:a1caf3989b49 |
---|---|
14 { "nginx", service_main }, | 14 { "nginx", service_main }, |
15 { NULL, NULL } | 15 { NULL, NULL } |
16 }; | 16 }; |
17 | 17 |
18 | 18 |
19 ngx_int_t ngx_service(ngx_log_t *log) | 19 ngx_int_t |
20 ngx_service(ngx_log_t *log) | |
20 { | 21 { |
21 /* primary thread */ | 22 /* primary thread */ |
22 | 23 |
23 /* StartServiceCtrlDispatcher() should be called within 30 seconds */ | 24 /* StartServiceCtrlDispatcher() should be called within 30 seconds */ |
24 | 25 |
30 | 31 |
31 return NGX_OK; | 32 return NGX_OK; |
32 } | 33 } |
33 | 34 |
34 | 35 |
35 void service_main(u_int argc, char **argv) | 36 void |
37 service_main(u_int argc, char **argv) | |
36 { | 38 { |
37 SERVICE_STATUS status; | 39 SERVICE_STATUS status; |
38 SERVICE_STATUS_HANDLE service; | 40 SERVICE_STATUS_HANDLE service; |
39 | 41 |
40 /* thread spawned by SCM */ | 42 /* thread spawned by SCM */ |
83 */ | 85 */ |
84 | 86 |
85 } | 87 } |
86 | 88 |
87 | 89 |
88 u_int service_handler(u_int control, u_int type, void *data, void *ctx) | 90 u_int |
91 service_handler(u_int control, u_int type, void *data, void *ctx) | |
89 { | 92 { |
90 /* primary thread */ | 93 /* primary thread */ |
91 | 94 |
92 switch (control) { | 95 switch (control) { |
93 | 96 |