April 25, 2010 [Issue 4127] New: std.stdio.File doesn't close popen() files correctly | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Adam D. Ruppe <destructionator@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: ------- |
April 26, 2010 [Issue 4127] std.stdio.File doesn't close popen() files correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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 --- Comment #1 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2010-04-26 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: ------- |
Copyright © 1999-2021 by the D Language Foundation