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
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
"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.