This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
flock() should return EWOULDBLOCK instead of EAGAIN.
authorJan Dubois <jand@activestate.com>
Fri, 13 Nov 2009 01:14:59 +0000 (17:14 -0800)
committerJan Dubois <jand@activestate.com>
Fri, 13 Nov 2009 01:15:30 +0000 (17:15 -0800)
commitfd9e8b45c89ee5d36539a3655dae7737fb78c21e
tree3b1d7ec73442a501edb898fdc6ad275683464688
parentcbdd53315d32c50fe69953522ff12b867c3e7d66
flock() should return EWOULDBLOCK instead of EAGAIN.

POSIX requires fcntl() to return EAGAIN or EACCES, whereas BSD
requires flock() to return EWOULDBLOCK.  On most systems EAGAIN
and EWOULDBLOCK use the same number, but on some (e.g. Linux on
PA-RISC) they do not.
pp_sys.c