>From Paul:

<snip>
He is correct, but I don't think it will solve the compatibility 
problem, since ActiveState perl doesn't support the alarm() function 
and does not define the POSIX macro SIGALRM...

I think we'll have to use the 'timeout' option to IO::Socket::INET, 
except that the timeout doesn't catch everything and is only 
semi-reliable. I am still scouting the net for answers, but haven't 
found an acceptable solution that is truly portable...
</snip>

Does anyone else have any suggestions (yourself included Vlad)

Charles Daminato
TUCOWS Product Manager
[EMAIL PROTECTED]

On Fri, 22 Feb 2002, Vlad Jebelev wrote:

> 
> > The portability problem should not be unique to the SF code. On line
> > 242 of the module OPS.pm in version 2.49 of the supported code:
> > 
> >     sigaction SIGALRM, new POSIX::SigAction( 'OPS::alrm_handler' );
> >     alarm( $timeout );
> > 
> > On line 164 of the module OPS::Sock of version 1.53 of the SF code:
> > 
> >    sigaction SIGALRM, new POSIX::SigAction('Sock::alrm_handler');
> >    return alarm($timeout);
> 
> Shouldn't it be 'sigaction SIGALRM, new POSIX::SigAction('OPS::Sock::alrm_handler');'
> instead?
> 
> 
> Vlad Jebelev
> OpenSRS developer
> 
> 

Reply via email to