digitalmars.D.bugs - [Issue 4127] New: std.stdio.File doesn't close popen() files correctly
- d-bugmail puremagic.com (24/24) Apr 24 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4127
- d-bugmail puremagic.com (12/12) Apr 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4127
http://d.puremagic.com/issues/show_bug.cgi?id=4127
Summary: std.stdio.File doesn't close popen() files correctly
Product: D
Version: 2.041
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: destructionator gmail.com
17:56:02 PDT ---
{
File f;
f.popen("command", "w");
f.write("hello world");
}
This throws in its destructor "cannot close file (success)". It looks like File
always calls fclose() on its handle, but if it is opened with popen(), it
should call pclose() to close it instead.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4127
Lars T. Kyllingstad <bugzilla kyllingen.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla kyllingen.net
Resolution| |DUPLICATE
00:14:41 PDT ---
*** This issue has been marked as a duplicate of issue 3157 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 26 2010








d-bugmail puremagic.com