Rimp 发表于 2014-04-26 11:29

Ulk Process Chapter 3

ULK中。
3.5.1.2. The do_exit( ) function
Checks whether the exit_signal process descriptor field of the process being terminated
is different from -1, and whether the process is the last member of its thread group
(notice that these conditions always hold for any normal process; see step 16 in the
description of copy_process( ) in the earlier section "The clone( ), fork( ), and vfork( )
System Calls"). In this case, the function sends a signal (usually SIGCHLD) to the parent of
the process being terminated to notify the parent about a child's death.

想知道 exit_signal 是什么时候被设置的。难道是在调用c函数库的_exit(-1),还是函数错误的返回码也包含在内的返回值也放在task_struct 的对应field.
页: [1]
查看完整版本: Ulk Process Chapter 3