Skip Menu |
 

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 6728
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.25
Fixed in: (no value)



Subject: Your vendor has not defined Fcntl macro F_SETFL
Download (untitled) / with headers
text/plain 420b
This is due to use of fcntl in Net::SSH::Perl The fix is to replace fcntl($sock, F_SETFL, O_NONBLOCK) or die "Can't set socket non-blocking: $!"; with defined( $sock->blocking(0) ) or die "Can't set socket non-blocking: ${\int$!} : $!"; This is the most crossplatform solution. That ${\int$!} is there because on some platforms $! will stringify to "Unknown error" for high numbers like 1122
Download (untitled) / with headers
text/plain 258b
"defined($sock->blocking(0))" is a good idea, I don't think so much the "${\int$!}"; the fact that high-numbered errors stringify incorrectly is an unrelated problem. Fix in for 1.27; I'd like to credit the requester in Changes but there's no name attached.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.