mirror_ubuntu-kernels/include/linux/sched
Eric W. Biederman d80f7d7b2c signal: Guarantee that SIGNAL_GROUP_EXIT is set on process exit
Track how many threads have not started exiting and when the last
thread starts exiting set SIGNAL_GROUP_EXIT.

This guarantees that SIGNAL_GROUP_EXIT will get set when a process
exits.  In practice this achieves nothing as glibc's implementation of
_exit calls sys_group_exit then sys_exit.  While glibc's implemenation
of pthread_exit calls exit (which cleansup and calls _exit) if it is
the last thread and sys_exit if it is the last thread.

This means the only way the kernel might observe a process that does
not set call exit_group is if the language runtime does not use glibc.

With more cleanups I hope to move the decrement of quick_threads
earlier.

Link: https://lkml.kernel.org/r/87bkukd4tc.fsf_-_@email.froward.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2022-07-20 10:23:51 -05:00
..
affinity.h
autogroup.h
clock.h
cond_resched.h
coredump.h sched: coredump.h: clarify the use of MMF_VM_HUGEPAGE 2022-05-19 14:08:48 -07:00
cpufreq.h
cputime.h
deadline.h
debug.h
hotplug.h
idle.h
init.h
isolation.h
jobctl.h sched,signal,ptrace: Rework TASK_TRACED, TASK_STOPPED state 2022-05-11 14:37:06 -05:00
loadavg.h
mm.h mm: Add len and flags parameters to arch_get_mmap_end() 2022-05-05 22:11:57 +10:00
nohz.h
numa_balancing.h
posix-timers.h
prio.h
rseq_api.h
rt.h
sd_flags.h
signal.h signal: Guarantee that SIGNAL_GROUP_EXIT is set on process exit 2022-07-20 10:23:51 -05:00
smt.h
stat.h
sysctl.h sched: Move energy_aware sysctls to topology.c 2022-04-06 13:43:44 -07:00
task_flags.h
task_stack.h task_stack, x86/cea: Force-inline stack helpers 2022-04-04 10:13:07 +02:00
task.h fix race between exit_itimers() and /proc/pid/timers 2022-07-11 09:52:59 -07:00
thread_info_api.h
topology.h
types.h
user.h
wake_q.h
xacct.h