summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2003-11-02 18:59:46 +0000
committergrange <grange@openbsd.org>2003-11-02 18:59:46 +0000
commit849b92c5c8f64fc17a62fb79c66b938ea5d5e761 (patch)
tree6ff3acc5fc9e7e10e1b7d0f418fabe691a3964f9
parent- newline before printing first state (so they all line up and the first (diff)
downloadwireguard-openbsd-849b92c5c8f64fc17a62fb79c66b938ea5d5e761.tar.xz
wireguard-openbsd-849b92c5c8f64fc17a62fb79c66b938ea5d5e761.zip
Document kthread_create() return value.
ok mickey@ jmc@
-rw-r--r--share/man/man9/kthread.911
1 files changed, 10 insertions, 1 deletions
diff --git a/share/man/man9/kthread.9 b/share/man/man9/kthread.9
index b10e79cc15f..dad8f9e1486 100644
--- a/share/man/man9/kthread.9
+++ b/share/man/man9/kthread.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kthread.9,v 1.5 2003/06/04 04:29:03 deraadt Exp $
+.\" $OpenBSD: kthread.9,v 1.6 2003/11/02 18:59:46 grange Exp $
.\"
.\" Copyright (c) 1999 Marc Espie
.\" All rights reserved.
@@ -79,6 +79,15 @@ when it can create threads, so it is up to
to call
.Fn kthread_create
at that point.
+.Sh RETURN VALUES
+Upon successful completion,
+.Fn kthread_create
+returns 0.
+Otherwise, the following error values are returned:
+.Bl -tag -width [EAGAIN]
+.It Bq Er EAGAIN
+The limit on the total number of system processes would be exceeded.
+.El
.Sh SEE ALSO
.Xr fork1 9
.Sh BUGS