新线程池服务模板当应用崩溃时不能生成 core 文件的问题修复;acl_fifo 中注释有误

This commit is contained in:
zsxxsz 2014-01-07 22:52:23 +08:00
parent 9527c34565
commit ec45296f32
3 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,10 @@
修改历史列表:
------------------------------------------------------------------------
414) 2013.1.7
414.1) bugfix: 线程池服务器模板 (acl_threads_server.c) 应该在 acl_chroot_uid
调用之后再调用 set_core_limit这样才能使应用程序崩溃时产生 core 文件
413) 2013.1.6
413.1) bugfix: 新线程池服务器模板 (acl_threads_server.c) 事件引擎的创建应该在
调用 pre_jail 前,否则应用在 pre_jail 回调中获得的事件引擎句柄为空

View File

@ -127,7 +127,7 @@ ACL_API ACL_FIFO_INFO *acl_fifo_pop_info(ACL_FIFO *fifo);
ACL_API void *acl_fifo_pop_back(ACL_FIFO *fifo);
/**
* ()
*
* @param fifo {ACL_FIFO*}
* @return {void*},
*/
@ -135,7 +135,7 @@ ACL_API void *acl_fifo_head(ACL_FIFO *fifo);
ACL_API ACL_FIFO_INFO *acl_fifo_head_info(ACL_FIFO *fifo);
/**
* ()
*
* @param fifo {ACL_FIFO*}
* @return {void*},
*/

View File

@ -1075,9 +1075,6 @@ void acl_threads_server_main(int argc, char **argv,
if (chdir(acl_var_threads_queue_dir) < 0)
acl_msg_fatal("chdir(\"%s\"): %s", acl_var_threads_queue_dir,
acl_last_serror());
/* if enable dump core when program crashed ? */
if (acl_var_threads_enable_core)
set_core_limit();
/* open the server's log */
open_log(event_mode);
@ -1097,6 +1094,10 @@ void acl_threads_server_main(int argc, char **argv,
acl_chroot_uid(root_dir, user_name);
/* if enable dump core when program crashed ? */
if (acl_var_threads_enable_core)
set_core_limit();
/* Run post-jail initialization. */
if (post_init)
post_init(post_init_ctx);