]> git.kaiwu.me - nginx.git/commit
Added ngx_init_setproctitle() return code check.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 8 Sep 2014 17:36:09 +0000 (21:36 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 8 Sep 2014 17:36:09 +0000 (21:36 +0400)
commitcb8a0327ab689867f6ea9e05fcb3242883e83bc2
tree0254ef9683b5ba36a44d10f6a9769db7362f6f6f
parent90df702bf86e4d9a9a2f319743598bc7aa1f8f57
Added ngx_init_setproctitle() return code check.

The ngx_init_setproctitle() function, as used on systems without
setproctitle(3), may fail due to memory allocation errors, and
therefore its return code needs to be checked.

Reported by Markus Linnala.
src/os/unix/ngx_posix_init.c
src/os/unix/ngx_setproctitle.h