* Michael Kerrisk (man-pages) <mtk.manpages@xxxxxxxxx>, 2020-04-17, 09:18:
$ cat /proc/sys/kernel/pid_max 30000 $ gcc clonetest.c -o clonetest $ ./clonetest Got a clone(2) failure; 28 (No space left on device). Made 28822 children.I *don't* reproduce this. On my Fedora 31 system, the error I see is EAGAIN.
AFAICT this was fixed in the mean time, in v4.19: https://git.kernel.org/linus/f83606f5eb007adc33bc8541ede00590f477bdeb -- Jakub Wilk