[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
- Prev by Date:
Re: What time is `sleep` based on?
- Next by Date:
Re: Multibyte support for sort, uniq, join, tr, cut, paste, expand, unexpand, fmt, fold, and pr
- Previous by thread:
sleep command documentation clarification request.
- Next by thread:
[PATCH] cut: Improved large file support on 32 bit archs
- Index(es):