I'd like to get a list of all the immediate children of a given PID. I'm OK with using /proc
but /proc/<PID>/task/<PID>/children
is NOT precise and may return inaccurate results (see section 3.7 here). I'd like a more reliable method of doing this.
I'd prefer not using a wrapper around a shell command.