[LTP] ????: [PATCH 1/2] syscalls/getpid01: Convert to new API

Cyril Hrubis chrubis@suse.cz
Thu Feb 25 11:30:29 CET 2021


Hi!
> Do you mean loop 100 times to fork 100 children processes?  I tried in this
> way and found that the pid number just increased sequentially from +0 to +100
> (Because no other processes were created during the test).  So, I am not sure
> if 100 times is enough to test the range?

I'm not sure if it's reasonable to test the whole range, my intention
was to run the test a few times since fork+getpid() should fast enough,
but I guess that if it's fast enough we can fork enough times for the
pid to wrap around.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list