Debian Codegraph @

Test_Progs/other_select2

raw
1 #! /usr/bin/perl -w
2
3 my $VERSION = 1.02;
4
5 use blib;
6
7 use Shell::POSIX::Select;
8
9 # Make sure that file-descriptor monitoring version of select
10 # doesn't get identified as loopy one
11
12 $rout= $timeleft= $nfound= $wout= $eout= $timeout = 0;
13 $rin = $win = $ein = '';
14 vec($rin,fileno(STDIN),1) = 1;
15 vec($win,fileno(STDOUT),1) = 1;
16 $ein = $rin | $win;
17
18 ($nfound,$timeleft) =
19 select($rout=$rin, $wout=$win, $eout=$ein, $timeout);