diff options
author | Jan Dubois <jand@activestate.com> | 2009-11-12 18:38:08 -0800 |
---|---|---|
committer | Jan Dubois <jand@activestate.com> | 2009-11-12 18:38:08 -0800 |
commit | 97b33cac18e30b878b151b5f3fcbf9c32cb7b037 (patch) | |
tree | 661f5c3f198bdf2bc1caa1a2b10ec1b4f8e91745 /sv.h | |
parent | fd9e8b45c89ee5d36539a3655dae7737fb78c21e (diff) | |
download | perl-97b33cac18e30b878b151b5f3fcbf9c32cb7b037.tar.gz |
flock() on Windows should set proper errno numbers.
It used to set errno to GetLastError(), which is from an
incompatible set of error codes. That doesn't make any
sense, especially since the GetLastError() value is also
available at the Perl level via $^E.
It is important for autodie.pm that flock() will set
$! to WSAWOULDBLOCK when GetLastError() returns
ERROR_LOCK_VIOLATION because that is the value POSIX.pm
now returns for POSIX::EWOULDBLOCK.
Diffstat (limited to 'sv.h')
0 files changed, 0 insertions, 0 deletions