develooper Front page | perl.perl5.porters | Postings from March 2007

[perl #41651] bug in select functiion on ARM

From:
Wu, Liu
Date:
March 1, 2007 08:26
Subject:
[perl #41651] bug in select functiion on ARM
Message ID:
rt-3.6.HEAD-2051-1172727590-1837.41651-75-0@perl.org
# New Ticket Created by  "Wu, Liu" 
# Please include the string:  [perl #41651]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41651 >


HI,

When I port the perl-5.8.8 to ARM ( xscale platform ,Big Endian ,
Montavista Linux professional edition 3.1) .

But I find it that the select () function in perl can't be work well.
Such program like this :

 

#! /usr/local/bin/perl

my $bits="";

my $timeout=3;

open READ,"html";

vec($bit,fileno(READ),1)=1;

while(select($bit,undef,undef,$timeout)){

        print "select\n";

}

The progress is simple. Open the file (the "html " file is exist ) .and
then call the select function to find out the opened file descriptor 

Normally , it should print "select " on screen . but unfortunately there
is nothing left on screen. 

For test the select system call. I program the c program to test select
() system call. It can work well. That's also to say that the system and
c library is no problem. 

So I doubt there are some problems on select function in Perl. Since the
select function in Perl depend on select system call.

I don't know why?

I was looking forward to your replying 

Thank you 

 

 

Wu Liu

cubical:PD3-2II-B11

email:liu.wu@intel.com

phone:86-21-387-37917

 




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About