Subject: | Bug in 1.16 |
Date: | Mon, 2 Oct 2006 16:23:24 -0400 |
To: | bug-Net-SNPP [...] rt.cpan.org |
From: | John Wingenbach <jwing [...] us.ibm.com> |
Server.pm uses write_to_pipe to handle the process_page callback for the
forked_server. The last call in the subroutine is flock. According to the
manual page for flock:
On success, zero is returned. On error, -1 is returned, and errno is
set appropriately.
As a result, write_to_pipe (aka process_page) will return a 0 when it is
successful. However, the call is tested in handle_client via:
$res = $self->{CB}{process_page}->( $pgrs[$i], $page, \@retvals );
as such, $res will be 0. However, the if tests which follow expect a
positive result to indicate success.
-- John Wingenbach