Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:16:31 |
Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Let a parent know about the death of a child.* For a stopped/continued status change, use do_notify_parent_cldstop instead.* Returns true if our parent ignored us and so we've switched to* self-reaping.
Proto:bool do_notify_parent(struct task_struct *tsk, int sig)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | tsk | |
int | sig |
1910 | bool autoreap = false |
1916 | BUG_ON(task_is_stopped_or_traced(tsk)) |
1918 | BUG_ON(!ptrace && (group_leader != tsk || !thread_group_empty(tsk))) |
1922 | do_notify_pidfd(tsk) |
1929 | If Thread group tracking: != self_exec_id Then sig = SIGCHLD |
1933 | clear_siginfo( & info) |
1935 | si_errno = 0 |
1949 | si_uid = from_kuid_munged(task_cred_xxx( Recipient of SIGCHLD, wait4() reports: , user_ns), task_uid(tsk)) |
1953 | task_cputime(tsk, & utime, & stime) |
1954 | si_utime = nsec_to_clock_t(utime + utime) |
1955 | si_stime = nsec_to_clock_t(stime + stime) |
1958 | If exit code & 0x80 Then si_code = child terminated abnormally |
1960 | Else if exit code & 0x7f Then si_code = child was killed |
1962 | Else |
1963 | si_code = child has exited |
1968 | spin_lock_irqsave( & siglock, flags) |
1969 | If Not ptrace && sig == SIGCHLD && ( sa_handler == gnore signal || sa_flags & SA_NOCLDWAIT ) Then |
1987 | autoreap = true |
1988 | If sa_handler == gnore signal Then sig = 0 |
1991 | If Test if 'sig' is valid signal. Use this instead of testing _NSIG directly && sig Then __group_send_sig_info(sig, & info, Recipient of SIGCHLD, wait4() reports: ) |
1994 | spin_unlock_irqrestore( & siglock, flags) |
1996 | Return autoreap |
Name | Describe |
---|---|
reparent_leader | Any that need to be release_task'd are put on the @dead list. |
exit_notify | Send signals to all our closest relatives so that they know* to properly mourn us.. |
wait_task_zombie | Handle sys_wait4 work for one task in state EXIT_ZOMBIE. We hold* read_lock(&tasklist_lock) on entry. If we return zero, we still hold* the lock and this task is uninteresting. If we return nonzero, we have |
__ptrace_detach | Called with tasklist_lock held for writing |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |