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: nob...@puremagic.com
        ReportedBy: destructiona...@gmail.com


--- Comment #0 from Adam D. Ruppe <destructiona...@gmail.com> 2010-04-24 
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: -------

Reply via email to