File: other_select2.cdump_ref

package info (click to toggle)
libshell-posix-select-perl 0.09-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: perl: 2,727; makefile: 7
file content (12 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12

# Make sure that file-descriptor monitoring version of select
# doesn't get identified as loopy one

$rout= $timeleft= $nfound= $wout= $eout= $timeout = 0;
$rin = $win = $ein = '';
vec($rin,fileno(STDIN),1) = 1;
vec($win,fileno(STDOUT),1) = 1;
$ein = $rin | $win;

($nfound,$timeleft) =
	select($rout=$rin, $wout=$win, $eout=$ein, $timeout);