Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesShould use only file descriptors > $^F for arbitrary file handles. #8542
Comments
This comment has been minimized.
This comment has been minimized.
From tom@trap.mtview.ca.usCreated by tom@trap.mtview.ca.usThis piece of code gives FOO file descriptor 0 preventing cat from being close(STDIN); pipe(PIN, COUT); Perl Info
|
This comment has been minimized.
This comment has been minimized.
From tom@trap.mtview.ca.usCreated by tom@trap.mtview.ca.usThis piece of code gives FOO file descriptor 0 preventing cat from being close(STDIN); pipe(PIN, COUT); Perl Info
|
This comment has been minimized.
This comment has been minimized.
From tom@trap.mtview.ca.usCreated by tom@trap.mtview.ca.usThis piece of code gives FOO file descriptor 0 preventing cat from being close(STDIN); pipe(PIN, COUT); Perl Info
|
This comment has been minimized.
This comment has been minimized.
From @rgarciaOn 25/07/06, via RT Tom Lear <perlbug-followup@perl.org> wrote:
I think that's intended behaviour. The usual way to discard STDIN is
|
This comment has been minimized.
This comment has been minimized.
The RT System itself - Status changed from 'new' to 'open' |
This comment has been minimized.
This comment has been minimized.
From nick@ing-simmons.netTom Lear <perl5-porters@perl.org> writes:
We seem to have got 3 copies of this ticket.
True - it is supposed to as there is existing code that does relying on open getting lowest available fileno.
Cat shouldn't be trying. So there is a bug here. Strace shows: STDIN: 9939 dup(7 <unfinished ...> No dup2 there. Now STDOUT 9939 dup(6) = 8 But that is as expected.
|
This comment has been minimized.
This comment has been minimized.
The RT System itself - Status changed from 'new' to 'open' |
This comment has been minimized.
This comment has been minimized.
@rgs - Status changed from 'new' to 'rejected' |
This comment has been minimized.
This comment has been minimized.
From @cpansproutOn Tue Jul 25 23:10:56 2006, ni-s wrote:
In that case, can I mark this as rejected? |
This comment has been minimized.
This comment has been minimized.
From [Unknown Contact. See original ticket]On Tue Jul 25 23:10:56 2006, ni-s wrote:
In that case, can I mark this as rejected? |
This comment has been minimized.
This comment has been minimized.
From @ikegamiOn Sun Sep 26 14:36:06 2010, sprout wrote:
Yes. fd0 shouldn't be closed. The only reason one would close it would |
This comment has been minimized.
This comment has been minimized.
@ikegami - Status changed from 'open' to 'rejected' |
This comment has been minimized.
This comment has been minimized.
From @ikegamiTo assign CIN to fd0, open(STDIN, '<&=0'); or POSIX::dup2(fileno(CIN), 0); |
This comment has been minimized.
This comment has been minimized.
From tom@trap.mtview.ca.usOn 09/26/2010 03:18 PM, Eric Brine via RT wrote:
That has nothing to do with it... the documentation said $^F is one |
Migrated from rt.perl.org#39954 (status was 'rejected')
Searchable as RT39954$