in reply to Re: Kill a child nicely
in thread Kill a child nicely
my $sel = IO::Select->new( $listen, *STDIN );
IO::Select is just an OO wrapper around select, no extra magic added. So all limitiations of select still apply. If you would have read perlport (it is linked from select), you would have found this:
select(Win32, VMS) Only implemented on sockets.
(RISC OS) Only reliable on sockets.
Note that the select FILEHANDLE form is generally portable.
So no, it won't work on Windows, because STDIN is not a socket in your code.
Alexander
|
|---|