]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fork: stop skipping < 100 ids on wrap around
authormjg <mjg@FreeBSD.org>
Sat, 17 Aug 2019 17:42:01 +0000 (17:42 +0000)
committermjg <mjg@FreeBSD.org>
Sat, 17 Aug 2019 17:42:01 +0000 (17:42 +0000)
commita51463002768ff956d579ff3bd76c480b1a44981
treeeb6013fd9de0bcfe1bd58dda32a2c29c18d01a4d
parentb508e83dd4a33c152cef384498dfbb98f12bd36a
fork: stop skipping < 100 ids on wrap around

Code doing this is commented with a claim that these IDs are occupied by
daemons, but that's demonstrably false. To an extent the range is used by init
and kernel processes (and on sufficiently big machines it indeed is fully
populated).

On a sample box 40-way box the highest id in the range is 63. On a different one
it is 23. Just use the range.

Sponsored by: The FreeBSD Foundation
sys/kern/kern_fork.c