12069 Backport sh_delay() and tvsleep() from ksh-2020.0.0
Review Request #2469 — Created Dec. 10, 2019 and submitted
This replaces the complex and buggy delay implementation in ksh sleep (aka /usr/bin/sleep) by simple nanosleep(3C) call as could be found in the new upstream ksh-2020.0.0.
I confirmed that /usr/bin/sleep with the newly built libast and libshell calls nanosleep() to implement the delay.
Status: Closed (submitted)
commit 5947648b7f5c085635051e1f7aa083a309542467 Author: Marcel Telka <email@example.com> AuthorDate: Tue Dec 10 15:01:42 2019 +0100 Commit: Robert Mustacchi <firstname.lastname@example.org> CommitDate: Tue Dec 17 23:10:01 2019 +0000 12069 Backport sh_delay() and tvsleep() from ksh-2020.0.0 Reviewed by: Dan McDonald <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com> :100644 100644 4123d2a183 d75699fca9 M exception_lists/copyright :100644 100644 9a44d6b2be 17c2c23d2c M exception_lists/cstyle :100644 100644 46d3d6ac59 7ada03eacb M usr/src/lib/libast/common/tm/tvsleep.c :100644 100644 6121cfe62b 8938dc536c M usr/src/lib/libshell/common/bltins/sleep.c