proc_tid_children(5)
๐ proc_tid_children ๐
okay bestie, so this one's a lil page from the File Formats Manual section (that's the "(5)" vibe, iykyk), and it's all about a very specific lil corner of /proc. let's get into it ๐ซถ
โจ NAME โจ
/proc/tid/children โ child tasks ๐
๐ธ DESCRIPTION ๐ธ
/proc/tid/children (since Linux 3.5)
so basically this file gives you a space-separated list of the child tasks of this task. and every single child task in that list? it's represented by its TID. that's it, that's the whole thing ๐
โ ๏ธ okay but this is where it gets spicy, so listen up bestie
This option is meant for the checkpoint-restore (CRIU) system, okay? and it only reliably hands you a list of children if all of the child processes are stopped or frozen. periodt.
It does not work properly if children of the target task exit while the file is being read! ๐ญ and like โ exiting children may cause non-exiting children to be omitted from the list. yeah. the ones that are still alive just... get ghosted. ๐
which honestly makes this interface even more unreliable than the classic PID-based approaches if the inspected task and its children aren't frozen. so like, most code should probably not use this interface. fr fr. it's giving "don't". ๐
๐ง kernel config lore ๐ง
- Until Linux 4.2, the presence of this file was governed by the
CONFIG_CHECKPOINT_RESTOREkernel configuration option. - Since Linux 4.2, it's governed by the
CONFIG_PROC_CHILDRENoption. โจ
so if the file just isn't showing up for you, vibe check your kernel config, bestie ๐
๐ SEE ALSO ๐
and that's the whole page, no cap ๐ go check out proc(5) next if you wanna be a /proc completionist ๐
๐ this little masterpiece came from Linux man-pages 6.20, dated 2026-02-08, page proc_tid_children(5) โ slay, ate, no crumbs left ๐ธ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms