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_RESTORE kernel configuration option.
  • Since Linux 4.2, it's governed by the CONFIG_PROC_CHILDREN option. โœจ

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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms