mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Core: exit on ngx_pnalloc() failure.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
This commit is contained in:
parent
f240215ba6
commit
1fe0f6a9b9
@ -121,6 +121,10 @@ ngx_master_process_cycle(ngx_cycle_t *cycle)
|
||||
}
|
||||
|
||||
title = ngx_pnalloc(cycle->pool, size);
|
||||
if (title == NULL) {
|
||||
/* fatal */
|
||||
exit(2);
|
||||
}
|
||||
|
||||
p = ngx_cpymem(title, master_process, sizeof(master_process) - 1);
|
||||
for (i = 0; i < ngx_argc; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user