diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-12-08 16:46:21 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-12-30 11:36:39 +0100 |
commit | a387c53a5a2f3e13850addc6976624f827a26226 (patch) | |
tree | 9f5aed62be62f37269e9e83bd92bae669aa767e1 /ext/B | |
parent | 937a45d0cc6e5b194e9242faa9cf78ba2122e6a3 (diff) | |
download | perl-a387c53a5a2f3e13850addc6976624f827a26226.tar.gz |
Convert POSIX::sleep to an XS wrapper for PerlProc_sleep().
Previously it was a Perl wrapper for CORE::sleep, converting CORE::sleep's
return value of elapsed time slept into the POSIX return value of seconds
remaining. However, that approach could sometimes return a negative result
if CORE::sleep had slept for more than a second longer than the requested
time.
Diffstat (limited to 'ext/B')
-rw-r--r-- | ext/B/t/concise-xs.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/B/t/concise-xs.t b/ext/B/t/concise-xs.t index 9082f61eed..efd0cf7788 100644 --- a/ext/B/t/concise-xs.t +++ b/ext/B/t/concise-xs.t @@ -205,7 +205,7 @@ my $testpkgs = { fmod floor dup2 dup difftime cuserid ctime ctermid cosh constant close clock ceil bootstrap atan asin asctime acos access abort - _exit + _exit sleep /], }, |