-
Notifications
You must be signed in to change notification settings - Fork 555
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
incorrect $! from open ">&nr" with too many open files #7971
Comments
From Peter.Dintelmann@dresdner-bank.comThis is a bug report for perl from Peter.Dintelmann@dresdner-bank.com, When open() is used with ">&nr" to dup a file descriptor and $ ulimit -n $ perl -MPOSIX -e 'system "truss -p $$ &"; dup 1 for 0..5; \ On my system at least 9 fds are needed to run truss in this way The close(-1) looks strange to me. Flags: Site configuration information for perl v5.8.7: Configured by p013176 at Wed Jun 1 15:12:46 MEST 2005. Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Locally applied patches: @INC for perl v5.8.7: Environment for perl v5.8.7: |
From Peter.Dintelmann@dresdner-bank.comThe proposed patch below fixes this bug and open(">&fd") sets $ ulimit -n $ diff -ur doio.c doio.c.patch Inline Patch--- doio.c Thu Apr 7 18:13:55 2005
+++ doio.c.patch Tue Sep 27 12:54:57 2005
@@ -410,7 +410,7 @@
else
was_fdopen = TRUE;
if (!(fp = PerlIO_openn(aTHX_
|
From @smpeters
Thanks! This patch applied with change #25621. |
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#36291 (status was 'resolved')
Searchable as RT36291$
The text was updated successfully, but these errors were encountered: