diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 1999-10-01 07:53:40 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 1999-10-01 07:53:40 +0000 |
commit | ac14c3115f412294d8715ef01d15d18265922bae (patch) | |
tree | 7fbdf09f53376a456969b87ff4101056449d8eb4 /bin/sleep/sleep.1 | |
parent | 3196c2972d99457e5e2b9b7e5a6dc9b3831edc83 (diff) |
Let sleep(1) handle fractions of a second (up to nanosecond).
This is a conservative change. It does the same thing in weird
cases like the old one. For example, 'sleep abcd' still sleeps
for zero seconds. `sleep 10.a' and `sleep 10.05aa' do the best
and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).
Notes
Notes:
svn path=/head/; revision=51835
Diffstat (limited to 'bin/sleep/sleep.1')
-rw-r--r-- | bin/sleep/sleep.1 | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1 index 237b57401463..1c5e6824123b 100644 --- a/bin/sleep/sleep.1 +++ b/bin/sleep/sleep.1 @@ -42,7 +42,7 @@ .Nm sleep .Nd suspend execution for an interval of time .Sh SYNOPSIS -.Nm sleep +.Nm .Ar seconds .Sh DESCRIPTION The @@ -50,17 +50,27 @@ The command suspends execution for a minimum of .Ar seconds . -.Nm Sleep -is used to schedule the execution of other commands (see -.Sx EXAMPLES -below). .Pp If the .Nm command receives a signal, it takes the standard action. +.Sh IMPLEMENTATION NOTES The .Dv SIGALRM signal is not handled specially by this implementation. +.Pp +The +.Nm +command will accept and honor a non-integer number of specified seconds +.Po +with a +.Ql \&. +character as a decimal point +.Pc . +.Bf Sy +This is a non-portable extension, and its use will nearly guarantee that +a shell script will not execute properly on another system. +.Ef .Sh DIAGNOSTICS The .Nm @@ -110,9 +120,7 @@ when the file is found, then another portion processing is done courteously by sleeping for 70 seconds in between each awk job. .Sh SEE ALSO -.Xr at 1 , -.Xr nanosleep 2 , -.Xr sleep 3 +.Xr nanosleep 2 .Sh STANDARDS The .Nm |