3 ms·
Sorting out PIDs, Tgids, and tasks on Linux
- deleted 3y ago[deleted]
- chenxiaolong 3y agoOne area where the distinction between PIDs and TGIDs matters a whole lot is for using ptrace on processes that call execve() (eg. for something like `strace -f`). In can be pretty tough to ensure that tracer's internal state matches reality: https://man.archlinux.org/man/ptrace.2#execve(2)_under_ptrace https://man.archlinux.org/man/ptrace.2#execve(2)_under_ptrac...