New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should use only file descriptors > $^F for arbitrary file handles. #8542
Comments
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
|
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
|
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
|
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
|
The RT System itself - Status changed from 'new' to 'open' |
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.
|
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'new' to 'rejected' |
From @cpansproutOn Tue Jul 25 23:10:56 2006, ni-s wrote:
In that case, can I mark this as rejected? |
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? |
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 |
@ikegami - Status changed from 'open' to 'rejected' |
From @ikegamiTo assign CIN to fd0, open(STDIN, '<&=0'); or POSIX::dup2(fileno(CIN), 0); |
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$
The text was updated successfully, but these errors were encountered: