From 4f556830dec19ec8821b2ff939ab181192ea4dfc Mon Sep 17 00:00:00 2001 From: Piotr Pawel Stefaniak Date: Sat, 9 Oct 2021 18:00:01 +0200 Subject: [PATCH] nanosleep.2: use appropriate macros Reported by: kib Fixes: bf8f6ffcb66a --- lib/libc/sys/nanosleep.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2 index 12758a974f7f..eb75c4b1043b 100644 --- a/lib/libc/sys/nanosleep.2 +++ b/lib/libc/sys/nanosleep.2 @@ -94,7 +94,10 @@ returns immediately and the calling thread is not suspended. The suspension time may be longer than requested due to the scheduling of other activity by the system. It is also subject to the allowed time interval deviation -specified by the sysctl kern.timecounter.alloweddeviation. +specified by the +.Va kern.timecounter.alloweddeviation +.Xr sysctl 8 +variable. An unmasked signal will terminate the sleep early, regardless of the .Dv SA_RESTART value on the interrupting signal.