News for hackers. Stuff that matters.
Re:IPC – Unix Signals by Lammy on Tuesday October 10, 2023 @01:21AM (#37828771)
And FreeBSD if so configured:

  $ sysctl kern.pid_max kern.randompid
  kern.pid_max: 99999
  kern.randompid: 594

D12238 sez “If set to a value of (100 <= kern.randompid <= (PID_MAX - 100)), it will be used as modulus when kern_fork.c tries to allocate new PID. Formula is lastpid += arc4random() % kern.randompid”

There are no comments on this comment yet.