Skip to content
Commit 2c470475 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

pids: Move the pgrp and session pid pointers from task_struct to signal_struct



To access these fields the code always has to go to group leader so
going to signal struct is no loss and is actually a fundamental simplification.

This saves a little bit of memory by only allocating the pid pointer array
once instead of once for every thread, and even better this removes a
few potential races caused by the fact that group_leader can be changed
by de_thread, while signal_struct can not.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 71dbc8a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment