From bb2357de0cf04c6d8f41e7f7f72f1c033181d4e7 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 16 Oct 2021 13:14:53 +0000 Subject: [PATCH] fork(2): document new error behaviour when out of resources --- sys/man/2/fork | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/man/2/fork b/sys/man/2/fork index 6f80e68de..9272f1a87 100644 --- a/sys/man/2/fork +++ b/sys/man/2/fork @@ -145,11 +145,11 @@ of the child process; the value returned in the child is zero. Without .BR RFPROC , the return value is zero. -Process ids range from 1 to the maximum integer +Process ids range from 1 to the maximum positive integer .RB ( int ) value. .I Rfork -will sleep, if necessary, until required process resources are available. +may also return -1 if process resources are exhausted. .PP .I Fork is just a call of