Skip to content

Commit

Permalink
event
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Aug 4, 2016
1 parent 363b367 commit 544320e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx/src/core/nginx.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ static ngx_command_t ngx_core_commands[] = {
offsetof(ngx_core_conf_t, debug_points),
&ngx_debug_points },

//设置user
{ ngx_string("user"),
NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE12,
ngx_set_user, //设置user
ngx_set_user,
0,
0,
NULL },
Expand Down
1 change: 1 addition & 0 deletions nginx/src/event/ngx_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ struct ngx_event_s {
unsigned oneshot:1;

/* aio operation is complete */
// 异步操作的完成标志,用于aio和多线程
unsigned complete:1;

// 当前的字节流已经结束即eof,不会再有数据可读
Expand Down

0 comments on commit 544320e

Please sign in to comment.