Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
103c89af
Commit
103c89af
authored
5 years ago
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor adjust
parent
1a3bfb97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server.md
docs/cn/server.md
+1
-1
No files found.
docs/cn/server.md
View file @
103c89af
...
...
@@ -350,7 +350,7 @@ server端会自动尝试其支持的协议,无需用户指定。`cntl->protoco
*
大部分
fork
会紧接
exec
,浪费了重建
*
给代码编写带来很多的麻烦和复杂度
brpc
的策略是按需创建这类线程,同时
fork
without
exec
必须发生在所有可能创建这些线程的代码前。具体地说,至少
**
发生在初始化所有
Server
/
Channel
/
应用代码前
**
,越早越好,不遵守这个约定的
fork
会导致程序不正常。另外,不支持
fork
without
exec
的
lib
相当普遍,最好
还是
避免这种用法。
brpc
的策略是按需创建这类线程,同时
fork
without
exec
必须发生在所有可能创建这些线程的代码前。具体地说,至少
**
发生在初始化所有
Server
/
Channel
/
应用代码前
**
,越早越好,不遵守这个约定的
fork
会导致程序不正常。另外,不支持
fork
without
exec
的
lib
相当普遍,最好避免这种用法。
# 设置
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment