]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rtcwake: wait stdin to settle down before entering a system sleep
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Dec 2017 15:43:25 +0000 (15:43 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Jan 2018 14:14:37 +0000 (15:14 +0100)
commitc8ff2e55625d1c01eaf2a6b47bb958be3d58ecce
tree9d354644f821675fd5d59337c45dced5292751e8
parenta60d6b52179d851d1d1165a06afa778ac9868107
rtcwake: wait stdin to settle down before entering a system sleep

This can delay entering to system sleep up to 0.28 seconds while discarding
input, when stdin is interactive device.

[kzak@redhat.com: - add note to the man page]

Reference: https://github.com/karelzak/util-linux/issues/527
See-also: a85c39013491713ac0d9e24fd0f07b4fabdcfc17
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.8.in
sys-utils/rtcwake.c