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