proc_dir_readdir skips over tasks if tasks exit between the individual get_tgid_list calls. The only approach that guarantees that no tasks are skipped is to add a cookie into the task list and restart from that cookie. Attached is a proof of concept patch that adds such cookies - please comment. -- Manfred