Skip to content

Commit bc849f7

Browse files
authored
Fix #92 (#93)
* Fix #92 * Ignore /site
1 parent 71d6d06 commit bc849f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
env/
44
venv/
55
venv-mkdocs/
6-
site/
76
.env/
87

9-
node_modules/
8+
node_modules/
9+
/site

docs/Ch04/supplement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Fork 是类 UNIX 中创建进程的基本方法:将当前的进程完整复制
5252

5353
许多守护进程直接由命令行的 shell 经 fork 产生,这样的进程首先要脱离当前会话,否则父进程退出时子进程也会退出。创建会话的系统调用是 `setsid()`。然而从 shell 中 fork 出来的进程为进程组组长,不能调用 setsid 另开会话:
5454

55-
```
55+
```text
5656
DESCRIPTION
5757
setsid() creates a new session if the calling process is not a process group leader. The calling
5858
process is the leader of the new session (i.e., its session ID is made the same as its process
@@ -183,7 +183,7 @@ int main() {
183183

184184
![forking](images/forking.png)
185185

186-
按下 T 键,界面显示的进程将转化为树状结构,直观描述了父子进程之间的关系。此处可以明显观察到树梢子进程的 PID 等于父进程的 PPID
186+
按下 T 键,界面显示的进程将转化为树状结构,直观描述了父子进程之间的关系。此处可以明显观察到树梢子进程的 PPID 等于父进程的 PID
187187

188188
同时由 shell 进程创立的 forking 进程的进程组号 (PGRP) 为自己的 PID,剩余进程的 PGRP 则继承自最开始的 forking 进程,PGRP 可以通过系统调用修改为自身,从原进程组中独立出去另起门户。
189189

0 commit comments

Comments
 (0)