I am trying to understand the diff between task_session() and task->signal-session and why we have the two notions of session. Are we just phasing out one of them ? In general each process has a single session id. The only exception being a process that unshares its pid ns. Such process will have exactly two session ids, one for each pid ns. No ? Thanks, Suka