Bug 4127 – std.stdio.File doesn't close popen() files correctly
Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-04-24T17:56:00Z
Last change time
2014-02-15T02:46:35Z
Assigned to
nobody
Creator
destructionator
Comments
Comment #0 by destructionator — 2010-04-24T17:56:02Z
{
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.
Comment #1 by bugzilla — 2010-04-26T00:14:41Z
*** This issue has been marked as a duplicate of issue 3157 ***