summaryrefslogtreecommitdiffstats
path: root/bin/sleep/sleep.1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>1999-10-01 07:53:40 +0000
committerru <ru@FreeBSD.org>1999-10-01 07:53:40 +0000
commit8e2cd16fb83ff0789444173ddfd06fd6ad45af4d (patch)
treee7e3e4d5c4ff94408802afa3d5836113453bd6f2 /bin/sleep/sleep.1
parent69ca82a991ea4825453bf9299c313eb4c4f4a897 (diff)
downloadFreeBSD-src-8e2cd16fb83ff0789444173ddfd06fd6ad45af4d.zip
FreeBSD-src-8e2cd16fb83ff0789444173ddfd06fd6ad45af4d.tar.gz
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).
Diffstat (limited to 'bin/sleep/sleep.1')
-rw-r--r--bin/sleep/sleep.124
1 files changed, 16 insertions, 8 deletions
diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1
index 237b574..1c5e682 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
OpenPOWER on IntegriCloud