In perl.git, the branch smoke-me/POSIX-sleep has been created
<http://perl5.git.perl.org/perl.git/commitdiff/1203c94d9ddf131eb84e48b96b9f2ed5812a6e9e?hp=0000000000000000000000000000000000000000>
at 1203c94d9ddf131eb84e48b96b9f2ed5812a6e9e (commit)
- Log -----------------------------------------------------------------
commit 1203c94d9ddf131eb84e48b96b9f2ed5812a6e9e
Author: Nicholas Clark <[email protected]>
Date: Fri Dec 9 13:09:07 2011 +0100
Provide the correct POSIX return value for POSIX::dup2() on Win32.
Microsoft, in their wisdom, chose to ignore the POSIX spec when implementing
their dup2(), and have theirs return 0 on success, instead of the file
descriptor. It seems that no other vendor is this, um, "special", so code
the exception directly, as we don't run Configure on Win32, so there's
little
point probing for this.
This resolves RT #98912.
M ext/POSIX/POSIX.xs
M ext/POSIX/t/posix.t
commit da016d1ae975e64ec71a0a5c42b9522725844e91
Author: Nicholas Clark <[email protected]>
Date: Thu Dec 8 16:46:21 2011 +0100
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.
M ext/B/t/concise-xs.t
M ext/POSIX/POSIX.xs
M ext/POSIX/lib/POSIX.pm
-----------------------------------------------------------------------
--
Perl5 Master Repository