----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19361/ -----------------------------------------------------------
(Updated March 21, 2014, 8:53 p.m.) Review request for mesos, Ben Mahler, Jie Yu, and Vinod Kone. Changes ------- Switched from pthreads to clone() to create threads - I believe fork() is implemented with clone() so this should be async-signal safe. Pass thread ids from child to parent so they can be verified against the ids read from /proc. Renamed tids() to threads(). Repository: mesos-git Description ------- Use directory entries in /proc/<pid>/task/ to get threads for <pid>. Two tests added which create children with 0 and 2 additional threads. Diffs (updated) ----- 3rdparty/libprocess/3rdparty/stout/include/stout/proc.hpp 201e4b88e352baf4ce0549c6359c034a3e1d960d 3rdparty/libprocess/3rdparty/stout/tests/proc_tests.cpp bc7e24821ef0bf887f0879033b0bb8dab70dcc2e Diff: https://reviews.apache.org/r/19361/diff/ Testing ------- make check # Linux Thanks, Ian Downes
