git: db1cdf2fabfe - main - libcasper.3: document cap_init's single-threaded program requirement
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Jan 2023 19:54:08 UTC
The branch main has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=db1cdf2fabfe15592ced2dedfb738778f2e2d441
commit db1cdf2fabfe15592ced2dedfb738778f2e2d441
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2023-01-11 03:01:59 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2023-01-11 03:53:30 +0000
libcasper.3: document cap_init's single-threaded program requirement
Because it internally forks.
[skip ci]
MFC after: 1 week
Sponsored by: Axcient
Reviewed by emaste, imp
Differential Revision: https://reviews.freebsd.org/D38020
---
lib/libcasper/libcasper/libcasper.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/libcasper/libcasper/libcasper.3 b/lib/libcasper/libcasper/libcasper.3
index a53ebed0dff1..6d4c49cf8ad0 100644
--- a/lib/libcasper/libcasper/libcasper.3
+++ b/lib/libcasper/libcasper/libcasper.3
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 29, 2022
+.Dd January 10, 2023
.Dt LIBCASPER 3
.Os
.Sh NAME
@@ -96,6 +96,7 @@ The
.Fn cap_init
function instantiates a capability to allow a program to access
the casper daemon.
+It must be called from a single-threaded context.
.Pp
The
.Fn cap_wrap