coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep command documentation clarification request.


From: Eric Blake
Subject: Re: sleep command documentation clarification request.
Date: Tue, 20 Mar 2018 16:59:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/20/2018 03:55 PM, Leslie Satenstein wrote:
if I run `sleep 1000` and then I put the computer to
sleep for overnight and when I wake the computer up, will the `sleep`
finish at
the time when the computer wakes up? Or `sleep` will take another 1000
seconds to terminate? Thanks.

Is sleep using "uptime" or wall clock time?

You're the second person to ask today.

The short answer: on Linux systems, it will sleep another 1000s
seconds after resuming from suspension.

For more details, read past discussion starting here:
https://lists.gnu.org/archive/html/bug-coreutils/2012-08/msg00077.html

Ending here with Pádraig's explanation on why this goes against what's
expected by POSIX:
https://lists.gnu.org/archive/html/bug-coreutils/2012-08/msg00091.html

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]