Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:15:32 |
Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Handle magic process-wide effects of stop/continue signals
Proto:static bool prepare_signal(int sig, struct task_struct *p, bool force)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
int | sig | |
struct task_struct * | p | |
bool | force |
896 | signal = Signal handlers: |
900 | If see SIGNAL_* flags below & (group exit in progress | coredump in progress ) Then |
901 | If Not (see SIGNAL_* flags below & group exit in progress ) Then Return sig == SIGKILL |
906 | Else if sig_kernel_stop(sig) Then |
910 | siginitset( & flush, sigmask(SIGCONT)) |
912 | for_each_thread(p, t) |
919 | siginitset( & flush, SIG_KERNEL_STOP_MASK) |
921 | for_each_thread(p, t) |
924 | If Value is more likely to compile time(!(ptrace & SEIZE used, enable new behavior )) Then wake_up_state(t, __TASK_STOPPED) |
938 | why = 0 |
939 | If see SIGNAL_* flags below & job control stop in effect Then why |= SIGNAL_CLD_CONTINUED |
941 | Else if hread group stop support, overloads group_exit_code too Then why |= Pending notifications to parent. |
944 | If why Then |
956 | Return Not sig_ignored(p, sig, force) |
Name | Describe |
---|---|
__send_signal | |
send_sigqueue |
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 |