From 422ff09040e90b129b58ebefb43f7eea66755bb2 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 14 Aug 1997 08:26:25 +0000 Subject: Explicitly point that it_value == 0 disables timer regardles of it_interval value. It is backward-compatible with previous usage and SunOS-compatible now. --- lib/libc/sys/getitimer.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2 index 23877a622af57..171bc42a57114 100644 --- a/lib/libc/sys/getitimer.2 +++ b/lib/libc/sys/getitimer.2 @@ -85,7 +85,9 @@ is non-zero, it specifies a value to be used in reloading when the timer expires. Setting .Fa it_value -to 0 disables a timer. Setting +to 0 disables a timer, regardless of the value of +.Fa it_interval . +Setting .Fa it_interval to 0 causes a timer to be disabled after its next expiration (assuming .Fa it_value -- cgit v1.3