From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90) Description of problem: I wrote aplication that from main proces fork 5 times. When I tested it on RH 8.0 ps didn't show one process. According to data in /proc process existed and was running (on other platform I didn't have such problems) . When I tested a job made by this process everything was OK. I suggestet that there is a bug in ps. Version-Release number of selected component (if applicable): procps How reproducible: Always Steps to Reproduce: 1. I run my soft in any situation that they gets different PID 2. Everytime there was this same problem 3. Additional info:
The ps in RH8 (and upstream ps too, in later versions) doesn't show subthreads by default. To get them you need to pass -m to ps. Due to the way threads are handled in LinuxThreads there is no really 100% correct way to detect what processes are threads, so it uses a hack. When a child process has identical name and vmsize as its parent its assumed to be a thread. This is fixed in RHL9 with the introduction of NPTL.