Mercurial > hg > nginx
comparison src/os/unix/ngx_process.c @ 6483:3a50ccd94333
Fixed ngx_os_signal_process() prototype.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 22:00:33 +0300 |
parents | 2b7dacb381ed |
children | e54c336d95aa |
comparison
equal
deleted
inserted
replaced
6482:2b7dacb381ed | 6483:3a50ccd94333 |
---|---|
609 } | 609 } |
610 } | 610 } |
611 | 611 |
612 | 612 |
613 ngx_int_t | 613 ngx_int_t |
614 ngx_os_signal_process(ngx_cycle_t *cycle, char *name, ngx_int_t pid) | 614 ngx_os_signal_process(ngx_cycle_t *cycle, char *name, ngx_pid_t pid) |
615 { | 615 { |
616 ngx_signal_t *sig; | 616 ngx_signal_t *sig; |
617 | 617 |
618 for (sig = signals; sig->signo != 0; sig++) { | 618 for (sig = signals; sig->signo != 0; sig++) { |
619 if (ngx_strcmp(name, sig->name) == 0) { | 619 if (ngx_strcmp(name, sig->name) == 0) { |
620 if (kill(pid, sig->signo) != -1) { | 620 if (kill(pid, sig->signo) != -1) { |
621 return 0; | 621 return 0; |
622 } | 622 } |
623 | 623 |
624 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, | 624 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, |
625 "kill(%P, %d) failed", (ngx_pid_t) pid, sig->signo); | 625 "kill(%P, %d) failed", pid, sig->signo); |
626 } | 626 } |
627 } | 627 } |
628 | 628 |
629 return 1; | 629 return 1; |
630 } | 630 } |