October 06, 2013 [Issue 11184] New: Win64: killing process with invalid handle terimates current process | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11184 Summary: Win64: killing process with invalid handle terimates current process Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: r.sagitario@gmx.de --- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2013-10-06 09:34:12 PDT --- module test; import std.process; import std.stdio; void main() { scope(exit) writeln("Goodbye"); writeln("spawn"); auto pid = spawnProcess(["find.exe"]); writeln("wait"); wait(pid); writeln("kill"); kill(pid); } compiled with "dmd -m64 test.d" yields this output: spawn wait FIND: Parameter format not correct kill while it prints "Goodbye" if the kill is not called. This is caused by the current process being terminated by kill (the fix is versioned for Win32 only). Fix is part of this PR: https://github.com/D-Programming-Language/phobos/pull/1411/files#diff-8ac4ebb5dcc368ac0e9b7b9f118aa824L1299 -- 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