From: Matthew Sachs Date: Mon, 18 Feb 2002 13:19:01 +0000 (-0500) Subject: Re: IO::Poll: Removing Handles X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02cbb7367e3472ecd0b1e9b606e2174beb3f8d86;p=p5sagit%2Fp5-mst-13.2.git Re: IO::Poll: Removing Handles Message-Id: <20020218181901.GA19377@allevil.dhcp.zevils.com> p4raw-id: //depot/perl@14750 --- diff --git a/ext/IO/lib/IO/t/io_poll.t b/ext/IO/lib/IO/t/io_poll.t index f987d99..d1c5caa 100755 --- a/ext/IO/lib/IO/t/io_poll.t +++ b/ext/IO/lib/IO/t/io_poll.t @@ -15,7 +15,7 @@ if ($^O eq 'mpeix') { select(STDERR); $| = 1; select(STDOUT); $| = 1; -print "1..9\n"; +print "1..10\n"; use IO::Handle; use IO::Poll qw(/POLL/); @@ -80,3 +80,11 @@ $poll->remove($dupout); print "not " if $poll->handles; print "ok 9\n"; + +my $stdin = \*STDIN; +$poll->mask($stdin => POLLIN); +$poll->remove($stdin); +close STDIN; +print "not " + if $poll->poll(0.1); +print "ok 10\n";