Re:IPC – Unix Signals
by somat on Monday October 09, 2023 @11:07PM
(#37828113)
Also note that openbsd uses random pids.
[ Parent
| on HN ]
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”